We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 357ce70 commit a187381Copy full SHA for a187381
suzieq/poller/controller/utils/inventory_utils.py
@@ -106,6 +106,11 @@ def find_error(
106
if not inventory:
107
raise InventorySourceError('The inventory is empty')
108
109
+ if not isinstance(inventory, dict):
110
+ raise InventorySourceError(
111
+ 'Expected mapping instead of list. Check the docs to know how to '
112
+ 'build the inventory file')
113
+
114
try:
115
inv_model = InventoryModel(**inventory)
116
except ValidationError as e:
0 commit comments