Skip to content
This repository was archived by the owner on Feb 10, 2018. It is now read-only.

Commit

Permalink
Merge pull request #169 from napalm-automation/cfg-set-strip
Browse files Browse the repository at this point in the history
Strip config text before checking the format type
  • Loading branch information
mirceaulinic authored Jun 20, 2017
2 parents b019279 + bee64b5 commit 29e2405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion napalm_junos/junos.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def _detect_config_format(self, config):
]
if config.strip().startswith('<'):
return 'xml'
elif config.split(' ')[0] in set_action_matches:
elif config.strip().split(' ')[0] in set_action_matches:
return 'set'
elif self._is_json_format(config):
return 'json'
Expand Down

0 comments on commit 29e2405

Please sign in to comment.