Fixed bug caught by unit tests.

This commit is contained in:
Luke Sneeringer 2014-07-24 10:14:43 -05:00
parent 5bf06ba37f
commit de953ec3ed

View File

@ -830,7 +830,7 @@ class InventorySourceOptions(BaseModel):
# If a credential was provided, it's important that it matches
# the actual inventory source being used (Amazon requires Amazon
# credentials; Rackspace requires Rackspace credentials; etc...)
if self.source.replace('ec2', 'awx') != cred.kind:
if self.source.replace('ec2', 'aws') != cred.kind:
raise ValidationError(
'Cloud-based inventory sources (such as %s) require '
'credentials for the matching cloud service.' % self.source