mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 11:10:21 -07:00
Removed a dictionary comprehension for python 2.6 support
This commit is contained in:
parent
7692391568
commit
23460e6480
1 changed files with 3 additions and 1 deletions
|
@ -203,7 +203,9 @@ class OVirtInventory(object):
|
||||||
inst.get_custom_properties()
|
inst.get_custom_properties()
|
||||||
ips = [ip.get_address() for ip in inst.get_guest_info().get_ips().get_ip()] \
|
ips = [ip.get_address() for ip in inst.get_guest_info().get_ips().get_ip()] \
|
||||||
if inst.get_guest_info() is not None else []
|
if inst.get_guest_info() is not None else []
|
||||||
stats = {y.get_name(): y.get_values().get_value()[0].get_datum() for y in inst.get_statistics().list()}
|
stats = {}
|
||||||
|
for stat in inst.get_statistics().list():
|
||||||
|
stats[stat.get_name()] = stat.get_values().get_value()[0].get_datum()
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'ovirt_uuid': inst.get_id(),
|
'ovirt_uuid': inst.get_id(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue