Skip to content

bug: Typing bug for IPHost values within protocols #891

@ogenstad

Description

@ogenstad

Component

No response

Infrahub SDK version

v1.19.0

Current Behavior

The protocol definitions for IPHost values are listed as being of type ipaddress.IPv4Address | ipaddress.IPv6Address this assumes a bare ip address i.e. "192.168.1.1", but the actual response is in the format "192.168.1.1/24" i.e. ipaddress.IPv4Interface | ipaddress.IPv6Interface

Expected Behavior

The protocol class should use the correct format

Steps to Reproduce

View the code here:

https://github.com/opsmill/infrahub-sdk-python/blob/v1.19.0/infrahub_sdk/protocols_base.py#L127-L132

Additional Information

No response

Metadata

Metadata

Assignees

Labels

type/bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions