Properly return the function

This commit is contained in:
Joshua Boniface 2020-06-05 15:50:43 -04:00
parent 440821b136
commit da20b4493a
1 changed files with 1 additions and 0 deletions

View File

@ -336,6 +336,7 @@ def cluster_req(function):
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.')
exit(1)
return function(*args, **kwargs)
return validate_cluster