Skip to content

iaas component is trying to regex match on an UUID #3534

@mhenselin

Description

@mhenselin

Description

after adding support for UUID in iaas the use of the SDK is failing with expected string or bytes-like object, got 'UUID'

Steps to reproduce

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

def mytest():
    config_kwargs = {
        # 'region': self.region,
        'service_account_key_path': ".../svc_acc.json",
    }
    config = Configuration(**config_kwargs)

    client = DefaultApi(config)

    srv = client.list_servers(project_id=UUID("uuid"), region="eu01")

    print(srv)

if __name__ == "__main__":
    mytest()

Actual behavior

error message expected string or bytes-like object, got 'UUID'

Expected behavior

no error

Environment

  • OS: Linux
  • Python version (see python --version): 3.14.3
  • Version of the Python STACKIT SDK:
# please run the following command to get the versions of the STACKIT Python SDK versions and add the output here in this code block

$ pip list | grep "stackit"

latest stackit.iaas

Additional information

Feel free to add any additional information here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions