Skip to content

Commit b79c1ab

Browse files
committed
fix inventory integration test error Type Error PrettyOrderedList not serializable
1 parent cdec142 commit b79c1ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/integration/targets/inventory-v3.6/compare_inventory_json.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def main():
141141

142142
if result:
143143
# Dictionary is not empty - print differences
144-
print(json.dumps(result, sort_keys=True, indent=4))
144+
print(json.dumps(list(result), sort_keys=True, indent=4))
145145
sys.exit(1)
146146
else:
147147
# Success, no differences

tests/integration/targets/inventory-v3.7/compare_inventory_json.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def main():
141141

142142
if result:
143143
# Dictionary is not empty - print differences
144-
print(json.dumps(result, sort_keys=True, indent=4))
144+
print(json.dumps(list(result), sort_keys=True, indent=4))
145145
sys.exit(1)
146146
else:
147147
# Success, no differences

0 commit comments

Comments
 (0)