Skip to content

listing project network interfaces fails with regex error #790

Open
@mhenselin

Description

@mhenselin

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions