Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #167 from nautobot/develop
Browse files Browse the repository at this point in the history
v1.6.1 Release
  • Loading branch information
qduk authored Oct 13, 2023
2 parents 850a1f0 + 664ae19 commit 635a590
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 185 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10"]
nautobot-version: ["1.4.2", "latest"]
runs-on: "ubuntu-20.04"
env:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v1.6.1 - 2023-09-14

### Fixed

- #164 - Update fix for Device Tag retrieval.

## v1.6.0 - 2023-04-26

### Added
Expand Down
3 changes: 1 addition & 2 deletions development/docker-compose.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ services:
depends_on:
- "postgres"
- "redis"
<<: *nautobot-build
<<: *nautobot-base
<<: [*nautobot-build, *nautobot-base]
worker:
entrypoint: "nautobot-server rqworker"
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion nautobot_ssot_aristacv/tests/test_utils_cloudvision.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def test_get_device_tags(self):
mock_tag.value.device_id.value = "JPE12345678"

tag_stub = MagicMock()
tag_stub.TagAssignmentConfigServiceStub.return_value.GetAll.return_value = [mock_tag]
tag_stub.TagAssignmentServiceStub.return_value.GetAll.return_value = [mock_tag]

with patch("nautobot_ssot_aristacv.utils.cloudvision.tag_services", tag_stub):
results = cloudvision.get_device_tags(client=self.client, device_id="JPE12345678")
Expand Down
4 changes: 3 additions & 1 deletion nautobot_ssot_aristacv/utils/cloudvision.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,14 @@ def get_tags_by_type(client, creator_type: int = tag_models.CREATOR_TYPE_USER):

def get_device_tags(client, device_id: str):
"""Get tags for specific device."""
tag_stub = tag_services.TagAssignmentConfigServiceStub(client)
tag_stub = tag_services.TagAssignmentServiceStub(client)
req = tag_services.TagAssignmentConfigStreamRequest(
partial_eq_filter=[
tag_models.TagAssignmentConfig(
key=tag_models.TagAssignmentKey(
device_id=StringValue(value=device_id),
element_type=tag_models.ELEMENT_TYPE_DEVICE,
workspace_id=StringValue(value=""),
)
)
]
Expand Down
Loading

0 comments on commit 635a590

Please sign in to comment.