mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
ovirt_network: ovirt fix getting labels (#52499)
* ovirt fix getting labels * add changelog - ovirt_network_label_fail * add new line to changelog ovirt_network_label_fail
This commit is contained in:
@@ -184,8 +184,8 @@ class NetworksModule(BaseModule):
|
||||
if self.param('label') is None:
|
||||
return
|
||||
|
||||
labels = [lbl.id for lbl in self._connection.follow_link(entity.network_labels)]
|
||||
labels_service = self._service.service(entity.id).network_labels_service()
|
||||
labels = [lbl.id for lbl in labels_service.list()]
|
||||
if not self.param('label') in labels:
|
||||
if not self._module.check_mode:
|
||||
if labels:
|
||||
|
||||
Reference in New Issue
Block a user