Skip to content

Commit

Permalink
update splitlines on string of config
Browse files Browse the repository at this point in the history
  • Loading branch information
itdependsnetworks committed Oct 13, 2019
1 parent 7c88c89 commit 2b54433
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions napalm_panos/panos.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,11 @@ def _send_merge_commands(self, config, file_config):
if self.ssh_connection is False:
self._open_ssh()

if file_config:
if isinstance(config, str):
if isinstance(config, str):
if file_config:
config = config.splitlines()
else:
if isinstance(config, str):
config = str(config).split()
else:
config = str(config).splitlines()

self.ssh_device.send_config_set(config)
self.loaded = True
Expand Down

0 comments on commit 2b54433

Please sign in to comment.