Mention what to do if no cluster found
This commit is contained in:
parent
8d758f3e53
commit
c39c6e8d86
|
@ -80,7 +80,7 @@ def get_config(store_data, cluster=None):
|
||||||
if os.path.isfile(cfgfile):
|
if os.path.isfile(cfgfile):
|
||||||
host, port, scheme = read_from_yaml(cfgfile)
|
host, port, scheme = read_from_yaml(cfgfile)
|
||||||
else:
|
else:
|
||||||
print('No cluster specified and no local pvc-api.yaml configuration found.')
|
click.echo('No cluster specified and no local pvc-api.yaml configuration found. Use "pvc cluster" to add a cluster API to connect to.')
|
||||||
return { 'badcfg': True }
|
return { 'badcfg': True }
|
||||||
else:
|
else:
|
||||||
# This is a static configuration, get the raw details
|
# This is a static configuration, get the raw details
|
||||||
|
|
Loading…
Reference in New Issue