From 15005d3e6be0756d559ebfb93f7fc83ef7edad27 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Thu, 3 Sep 2015 13:33:08 -0400 Subject: [PATCH] Fix issue with ec2 iam sync with no credential. When checking if an inventory sync can start allow an ec2 sync to run even if credentials are not supplied --- awx/main/models/inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/models/inventory.py b/awx/main/models/inventory.py index 392c011a16..51efab2690 100644 --- a/awx/main/models/inventory.py +++ b/awx/main/models/inventory.py @@ -1259,7 +1259,7 @@ class InventoryUpdate(UnifiedJob, InventorySourceOptions): if not super(InventoryUpdate, self).can_start: return False - if (self.source != 'custom' and + if (self.source not in ('custom', 'ec2') and not (self.credential and self.credential.active)): return False return True