mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 13:11:19 -03:30
Merge pull request #4732 from ryanpetrello/cli-migrating
cli: show a better error if AWX is migrating Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
ed692018cd
@ -130,7 +130,14 @@ class CLI(object):
|
||||
raise
|
||||
|
||||
def fetch_version_root(self):
|
||||
self.v2 = self.root.get().available_versions.v2.get()
|
||||
try:
|
||||
self.v2 = self.root.get().available_versions.v2.get()
|
||||
except AttributeError:
|
||||
raise RuntimeError(
|
||||
'An error occurred while fetching {}/api/'.format(
|
||||
self.get_config('host')
|
||||
)
|
||||
)
|
||||
|
||||
def parse_resource(self, skip_deprecated=False):
|
||||
"""Attempt to parse the <resource> (e.g., jobs) specified on the CLI
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user