Skip to content

Commit

Permalink
Fixed TextFSM Commando Multiple Devices Bug. (#306)
Browse files Browse the repository at this point in the history
This fixes a bug in the textfsm results binding command where given
multiple devices in a Commando device_list, the parsed results clobber
the parsed_results variable instead of the expected behaviour of a list
of dicts keyed by the devices' hostname containing the parsed results.
  • Loading branch information
tcuthbert authored and jathanism committed Nov 10, 2016
1 parent 95f017f commit 68f47ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trigger/cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def append_parsed_results(self, device, results):
"""
devname = str(device)
log.msg("Appending results for %r: %r" % (devname, results))
self.parsed_results[devname].update(results)
self.parsed_results[devname] = results
return True

def store_results(self, device, results):
Expand Down

0 comments on commit 68f47ee

Please sign in to comment.