Skip to content

Commit

Permalink
changed call to health check
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbr70 committed Jun 12, 2017
1 parent 69a3ace commit 2b39835
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sandbox_scripts/helpers/Networking/NetworkingSaveNRestore.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def _run_asynch_load(self, resource, images_path_dict, root_path, ignore_models,
if load_config_to_device:

self.sandbox.report_info(resource.name + " starting health check", write_to_output_window=True)
health_check_result = resource.health_check(self.sandbox.id, health_check_attempts, wait_for_success=True)
health_check_result = resource.health_check(self.sandbox.id, health_check_attempts)
if health_check_result == "":
self.sandbox.report_info(resource.name + " -- Initial Health Check Passed.")
try:
Expand Down Expand Up @@ -203,9 +203,7 @@ def _run_asynch_load(self, resource, images_path_dict, root_path, ignore_models,
message += "\n" + resource.name + ": loading config from:" + config_path
resource.load_network_config(self.sandbox.id, config_path, 'Running', 'Override')

health_check_result = resource.health_check(self.sandbox.id,
health_check_attempts=1,
wait_for_success=False)
health_check_result = resource.health_check(self.sandbox.id, health_check_attempts=1)
if health_check_result != '':
raise QualiError(self.sandbox.id, resource.name +
" did not pass health check after loading configuration")
Expand Down

0 comments on commit 2b39835

Please sign in to comment.