diff --git a/awx/main/tests/inventory.py b/awx/main/tests/inventory.py index d8785b23d9..657ef0b713 100644 --- a/awx/main/tests/inventory.py +++ b/awx/main/tests/inventory.py @@ -1229,6 +1229,8 @@ class InventoryUpdatesTest(BaseTransactionTest): }) else: data.update({'source': inventory_source.source}) + if inventory_source.source == 'custom': + data['source_script'] = inventory_source.source_script.pk response = self.put(inv_src_url2, data, expect=400) self.assertTrue('source' in response, response) # Make sure we can delete the inventory update.