Skip to content

Commit

Permalink
addressing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ColeHiggins2 committed Apr 1, 2024
1 parent 41dbf1f commit b9b21f8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/foreman/cli/test_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -2720,8 +2720,5 @@ def test_positive_create_host_with_lifecycle_environment_name(
}
)
hosts = module_target_sat.cli.Host.list({'organization-id': module_org.id})
for i in hosts:
if new_host.name in i.values():
found_host = True
break
assert found_host is True, 'Assertion failed: host not found'
found_host = any(new_host.name in i.values() for i in hosts)
assert found_host, 'Assertion failed: host not found'

0 comments on commit b9b21f8

Please sign in to comment.