Skip to content

[BUG] Getting a network by ID does not work #584

@nlacasse

Description

@nlacasse

See repro test here.

When we create a new network, podman returns its id. However, the Network.id method tries to return self.attrs["Id"], but that always fails, so it falls back to returing a synthetic id based on the network name. If we pass this id to network.get(), the call fails, since Podman does not know any networks with that id.

Lowercasing Id -> id in this line fixes the issue, and causes Network.id to return the correct id assiged by Podman. But I'm not sure if that's the correct fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions