bugfix for missing function name in ios_command

This provides a minor bugfix for a missing function name in the ios_command
network module
This commit is contained in:
Peter Sprygada 2016-02-17 13:47:41 +00:00
parent 4e594a9196
commit 567e09c933

View file

@ -108,18 +108,12 @@ failed_conditions:
import time
import shlex
import re
import json
INDEX_RE = re.compile(r'(\[\d+\])')
def get_response(data):
try:
json_data = json.loads(data)
except ValueError:
json_data = None
return dict(data=data, json=json_data)
def to_lines(stdout):
for item in stdout:
if isinstance(item, basestring):
item = str(item).split('\n')
yield item
def main():
spec = dict(