From de953ec3ed816f5ac2eb85addf71e194cc32ae85 Mon Sep 17 00:00:00 2001 From: Luke Sneeringer Date: Thu, 24 Jul 2014 10:14:43 -0500 Subject: [PATCH] Fixed bug caught by unit tests. --- 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 e6545ace9e..36226f80f3 100644 --- a/awx/main/models/inventory.py +++ b/awx/main/models/inventory.py @@ -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