Properly return the function
This commit is contained in:
parent
440821b136
commit
da20b4493a
|
@ -336,6 +336,7 @@ def cluster_req(function):
|
||||||
if config.get('badcfg', None):
|
if config.get('badcfg', None):
|
||||||
click.echo('No cluster specified and no local pvcapid.yaml configuration found. Use "pvc cluster" to add a cluster API to connect to.')
|
click.echo('No cluster specified and no local pvcapid.yaml configuration found. Use "pvc cluster" to add a cluster API to connect to.')
|
||||||
exit(1)
|
exit(1)
|
||||||
|
return function(*args, **kwargs)
|
||||||
return validate_cluster
|
return validate_cluster
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue