mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 22:46:01 -03:30
properly detect the absence of credential_type in older tower-cli (#36908)
This commit is contained in:
committed by
AlanCoding
parent
2edca4f357
commit
2e04969f17
@@ -260,7 +260,7 @@ def main():
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
tower_cli.get_resource('credential_type')
|
tower_cli.get_resource('credential_type')
|
||||||
except (AttributeError):
|
except (ImportError, AttributeError):
|
||||||
# /api/v1/ backwards compat
|
# /api/v1/ backwards compat
|
||||||
# older versions of tower-cli don't *have* a credential_type
|
# older versions of tower-cli don't *have* a credential_type
|
||||||
# resource
|
# resource
|
||||||
|
|||||||
Reference in New Issue
Block a user