Skip to content

Commit

Permalink
Merge pull request #28 from opsmill/wvd-20241007-bump-sdk-0.14.0
Browse files Browse the repository at this point in the history
Update infrahub-sdk to v0.14.0
  • Loading branch information
wvandeun authored Oct 18, 2024
2 parents 0ef3fca + 33ee4d7 commit bb58c34
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion nornir_infrahub/plugins/inventory/infrahub.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def __init__( # noqa: PLR0913
self.defaults_file = Path(defaults_file).expanduser()
self.group_file = Path(group_file).expanduser()

self.client = InfrahubClientSync.init(config=Config(api_token=token), address=self.address)
self.client = InfrahubClientSync(config=Config(api_token=token), address=self.address)

schema_mappings = schema_mappings or []
self.schema_mappings = [SchemaMappingNode(**mapping) for mapping in schema_mappings]
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nornir-infrahub"
version = "0.3.2"
version = "0.4.0"
description = "Nornir plugin for Infrahub"
authors = ["OpsMill <[email protected]>"]
readme = "README.md"
Expand All @@ -24,7 +24,7 @@ packages = [{ include = "nornir_infrahub" }]

[tool.poetry.dependencies]
python = "^3.9, <3.13"
infrahub-sdk = { version = "^0,>=0.9.1", extras = ["tests"] }
infrahub-sdk = { version = "^0,>=0.14.0", extras = ["tests"] }
ruamel-yaml = "^0.18.5"
nornir = "^3.4.1"
nornir-utils = "^0.2.0"
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

@pytest.fixture
async def client() -> InfrahubClient:
return await InfrahubClient.init(address="http://mock")
return InfrahubClient(address="http://mock")


@pytest.fixture
async def client_sync() -> InfrahubClientSync:
return (InfrahubClientSync.init(address="http://mock"),)
return (InfrahubClientSync(address="http://mock"),)


@pytest.fixture
Expand Down

0 comments on commit bb58c34

Please sign in to comment.