mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 16:28:43 -03:30
Fixed bug caught by unit tests.
This commit is contained in:
@@ -830,7 +830,7 @@ class InventorySourceOptions(BaseModel):
|
|||||||
# If a credential was provided, it's important that it matches
|
# If a credential was provided, it's important that it matches
|
||||||
# the actual inventory source being used (Amazon requires Amazon
|
# the actual inventory source being used (Amazon requires Amazon
|
||||||
# credentials; Rackspace requires Rackspace credentials; etc...)
|
# credentials; Rackspace requires Rackspace credentials; etc...)
|
||||||
if self.source.replace('ec2', 'awx') != cred.kind:
|
if self.source.replace('ec2', 'aws') != cred.kind:
|
||||||
raise ValidationError(
|
raise ValidationError(
|
||||||
'Cloud-based inventory sources (such as %s) require '
|
'Cloud-based inventory sources (such as %s) require '
|
||||||
'credentials for the matching cloud service.' % self.source
|
'credentials for the matching cloud service.' % self.source
|
||||||
|
|||||||
Reference in New Issue
Block a user