Skip to content

Commit 302f7c5

Browse files
committed
test_host_tags: fix cleanup to handle None host tags
When a host has no explicit tags initially, cls.host.hosttags is None. Passing None to the API does not set the hosttags parameter, so tags are never cleared during cleanup. Convert None to empty string to properly clear tags that were set during the test.
1 parent d1b73a0 commit 302f7c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/integration/smoke/test_host_tags.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def tearDownClass(cls):
6363
def update_host_tags_via_api(cls, hosttags):
6464
cmd = updateHost.updateHostCmd()
6565
cmd.id = cls.host.id
66-
cmd.hosttags = hosttags
66+
cmd.hosttags = hosttags if hosttags is not None else ""
6767
cls.apiclient.updateHost(cmd)
6868

6969
@classmethod

0 commit comments

Comments
 (0)