properly detect the absence of credential_type in older tower-cli (#36908)

pull/4420/head
Ryan Petrello 2018-03-01 10:36:18 -05:00 committed by ansibot
parent ac11027d58
commit a82043939b
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ def main():
try:
tower_cli.get_resource('credential_type')
except (AttributeError):
except (ImportError, AttributeError):
# /api/v1/ backwards compat
# older versions of tower-cli don't *have* a credential_type
# resource