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

(cherry picked from commit a82043939b)
pull/37055/head
Ryan Petrello 7 years ago committed by Sam Doran
parent 2bcc02e653
commit ee4578c4cd

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

Loading…
Cancel
Save