Skip to content
This repository has been archived by the owner on May 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #34 from bewing/fix_exec
Browse files Browse the repository at this point in the history
Fix indent level in _exec_commands
  • Loading branch information
dbarrosop committed Apr 3, 2017
2 parents 6594c78 + 90d9d35 commit e156c80
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions napalm_yang/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ def _execute_methods(self, device, methods):
attr = device
for p in m["method"].split("."):
attr = getattr(attr, p)
r = attr(**m["args"])
r = attr(**m["args"])

if isinstance(r, dict) and all([isinstance(x, (str, unicode)) for x in r.values()]):
# Some vendors like junos return commands enclosed by a key
r = "\n".join(r.values())
if isinstance(r, dict) and all([isinstance(x, (str, unicode)) for x in r.values()]):
# Some vendors like junos return commands enclosed by a key
r = "\n".join(r.values())

result.append(r)
result.append(r)

return result

Expand Down

0 comments on commit e156c80

Please sign in to comment.