Skip to content

listing project network interfaces fails with regex error #790

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mhenselin opened this issue Mar 21, 2025 · 1 comment
Open

listing project network interfaces fails with regex error #790

mhenselin opened this issue Mar 21, 2025 · 1 comment

Comments

@mhenselin
Copy link

mhenselin commented Mar 21, 2025

Hi

simple example:

from stackit.iaas.api.default_api import DefaultApi
from stackit.core.configuration import Configuration

# Create a new API client, that uses default authentication and configuration
config = Configuration(
    service_account_key_path=sa_cred_path,
    region="eu01",
)
client = DefaultApi(config)

print(client.list_project_nics(
    project_id=project_id,
))

fails with

name
  Value error, must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/ [type=value_error, input_value='', input_type=str]```

and this happens when nic name is empty - which is default for system nics like dhcp server and meta data server

regards
Marzl
@mhenselin
Copy link
Author

proposed change
file: stackit-sdk-python/services/iaas/src/stackit/iaas/models/nic.py

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants