Skip to content

Commit

Permalink
Merge pull request #482 from openvstorage/not_standalone
Browse files Browse the repository at this point in the history
HealthcheckCLI should not be standalone
(cherry picked from commit eeacaa3)
  • Loading branch information
JeffreyDevloo committed Jul 4, 2018
1 parent a2ed85b commit 257386e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ovs/extensions/healthcheck/expose_to_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,10 +603,10 @@ def healthcheck_result_handler(ctx, result, *args, **kwargs):
result_handler = hc_context.result_handler
return HealthCheckShared.get_healthcheck_results(result_handler)

def main(self, *args, **kwargs):
def main(self, args=None, prog_name=None, complete_var=None, standalone_mode=False, **extra):
# type: (List[any], Dict[any]) -> dict
try:
return super(HealthCheckCLI, self).main(*args, **kwargs)
return super(HealthCheckCLI, self).main(args, prog_name, complete_var, standalone_mode, **extra)
except (click.Abort, KeyboardInterrupt):
# Aborted before running any command. Print and return an empty result to stdout.
# Unable to capture output params in this stage as it is handled by the main method
Expand Down

0 comments on commit 257386e

Please sign in to comment.