Refactor host.ls() to host.get_containers()

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Roy Nieterau 2022-08-12 18:14:23 +02:00 committed by GitHub
parent ca424baf73
commit a3ee45edd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ class SelectFromScene(InventoryAction):
host = registered_host()
to_select = []
for container in host.ls():
for container in host.get_containers():
members = get_container_members(container)
if any(member in selection for member in members):
to_select.append(container["objectName"])