Fix polyaxon admin commands when calling without a config file
@@ -81,6 +81,7 @@ def deploy(config_file, manager_path, check, dry_run):
config=config, filepath=config_file, manager_path=manager_path, dry_run=dry_run
)
exception = None
+ if config:
Printer.print_success(
"Polyaxon `{}` deployment file is valid.".format(config.deployment_chart)
)
@@ -134,6 +135,7 @@ def upgrade(config_file, manager_path, check, dry_run):
config=config, filepath=config_file, manager_path=manager_path, dry_run=dry_run
)
exception = None
+ if config:
Printer.print_success(
"Polyaxon `{}` deployment file is valid.".format(config.deployment_chart)
)
