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

pull/36951/head
Ryan Petrello 7 years ago committed by ansibot
parent ac11027d58
commit a82043939b

@ -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

Loading…
Cancel
Save