Skip to content

Commit

Permalink
turned on one write to output and added a couple periods to msg to op…
Browse files Browse the repository at this point in the history
… window
  • Loading branch information
jimbr70 committed May 8, 2017
1 parent 5c5f6a1 commit e3f5fe4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sandbox_scripts/helpers/Networking/NetworkingSaveNRestore.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def load_config(self, config_stage, config_type, restore_method="Override", conf
root_path = root_path.replace(' ', '_')
self.sandbox.report_info("RootPath: " + root_path, write_to_output_window=True)
images_path_dict = self._get_images_path_dict(root_path)
self.sandbox.report_info("\nLoading image and configuration on the devices. This action may take some time",
self.sandbox.report_info("\nLoading image and configuration on the devices. This action may take some time.",
write_to_output_window=True)
root_resources = self.sandbox.get_root_networking_resources()
""":type : list[ResourceBase]"""
Expand Down Expand Up @@ -149,8 +149,8 @@ def _run_asynch_load(self, resource, images_path_dict, root_path, ignore_models,
if len(images_path_dict) > 0:
# check what the device FW version is currently.
version = resource.get_version(self.sandbox.id)
self.sandbox.report_info(resource.name + ": current version: " + version,
write_to_output_window=False)
self.sandbox.report_info(resource.name + " current version: " + version,
write_to_output_window=True)
# First try with an firmware image key of concrete resource name!!
dict_img_version = ''
image_key = ''
Expand Down Expand Up @@ -179,7 +179,6 @@ def _run_asynch_load(self, resource, images_path_dict, root_path, ignore_models,
restore_method='Override')
# Different image - Load config to the RUNNING ALSO and load the image
else:
message += "\n" + resource.name + ": loading configuration from:" + config_path
resource.load_network_config(self.sandbox.id, config_path,
config_type='Running',
restore_method='Override')
Expand Down

0 comments on commit e3f5fe4

Please sign in to comment.