@@ -80,7 +80,8 @@ def dump_publishes(self, publishes_to_save, dump_dir, prefix):
8080 raise Exception ('Publish(es) required not found' )
8181
8282 for publish in save_list :
83- save_path = '' .join ([dump_dir , '/' , prefix , publish .name .replace ('/' , '-' ), '.yml' ])
83+ storage = '' if not publish .storage else '-{}-' .format (publish .storage )
84+ save_path = '' .join ([dump_dir , '/' , prefix , storage , publish .name .replace ('/' , '-' ), '.yml' ])
8485 publish .save_publish (save_path )
8586
8687 def _publish_match (self , publish , names = False , name_only = False ):
@@ -481,7 +482,8 @@ def restore_publish(self, config, components, recreate=False):
481482
482483 to_publish .append (component_name )
483484
484- snapshot_name = '{}-{}' .format ("restored" , saved_component .get ('snapshot' ))
485+ timestamp = time .strftime ("%Y%m%d%H%M%S" )
486+ snapshot_name = '{}-{}-{}' .format ("restored" , timestamp , saved_component .get ('snapshot' ))
485487 lg .debug ("Creating snapshot %s for component %s of packages: %s"
486488 % (snapshot_name , component_name , saved_packages ))
487489
0 commit comments