implement CredentialType env, file, and extra_vars injectors

see: #5877
This commit is contained in:
Ryan Petrello
2017-04-19 15:19:29 -04:00
parent e65ef35acf
commit a36a53fe40
6 changed files with 293 additions and 30 deletions

View File

@@ -979,7 +979,7 @@ class InventorySourceOptions(BaseModel):
if not self.source:
return None
cred = self.credential
if cred:
if cred and self.source != 'custom':
# 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...)