Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update infrahub-sdk to v0.14.0 #28

Merged
merged 4 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading