Skip to content

Commit

Permalink
in save, added / to path if it's missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Costya.y committed Nov 15, 2018
1 parent 08fdc9e commit b7b42b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cloudshell/devices/runners/configuration_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ def save(self, folder_path='', configuration_type='running', vrf_management_name
vrf_management_name = vrf_management_name or self.resource_config.vrf_management_name

self._validate_configuration_type(configuration_type)
if not folder_path.endswith("/"):
folder_path += "/"
folder_path = self.get_path(folder_path)
system_name = re.sub('\s+', '_', self.resource_config.name)[:23]
time_stamp = time.strftime("%d%m%y-%H%M%S", time.localtime())
Expand Down

0 comments on commit b7b42b0

Please sign in to comment.