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
This commit is contained in:
Matthew Jones 2015-09-03 13:33:08 -04:00
parent 55e7458ebf
commit 15005d3e6b

View File

@ -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