From be1fdff68e1bf7868614c8c8760eb15f88991d07 Mon Sep 17 00:00:00 2001 From: Tom Paine Date: Wed, 21 Aug 2024 15:17:16 +0100 Subject: [PATCH] fix attribute test --- .../unit/plugins/inventory/test_opennebula.py | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/tests/unit/plugins/inventory/test_opennebula.py b/tests/unit/plugins/inventory/test_opennebula.py index b47bb2e8dc..30007737d3 100644 --- a/tests/unit/plugins/inventory/test_opennebula.py +++ b/tests/unit/plugins/inventory/test_opennebula.py @@ -58,18 +58,20 @@ def get_vm_pool(): 'ETIME': 0, 'GID': 132, 'GNAME': 'CSApparelVDC', - 'HISTORY_RECORDS': list [ - 'HISTORY': OrderedDict({ - 'OID': '42', - 'SEQ': '384', - 'HOSTNAME': 'sam-691-sam', - 'HID': '10', - 'CID': '0', - 'DS_ID': '100', - 'VM_MAD': 'kvm', - 'TM_MAD': '3par', - 'ACTION': '0' - }), + 'HISTORY_RECORDS': [ + { + 'HISTORY': OrderedDict({ + 'OID': '42', + 'SEQ': '384', + 'HOSTNAME': 'sam-691-sam', + 'HID': '10', + 'CID': '0', + 'DS_ID': '100', + 'VM_MAD': 'kvm', + 'TM_MAD': '3par', + 'ACTION': '0' + }), + } ], 'ID': 7157, 'LAST_POLL': 1632762935,