bugfix for missing function name in ios_command

This provides a minor bugfix for a missing function name in the ios_command
network module
pull/18777/head
Peter Sprygada 9 years ago committed by Matt Clay
parent aaf762573e
commit 0f7279b967

@ -108,18 +108,12 @@ failed_conditions:
import time import time
import shlex import shlex
import re 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(): def main():
spec = dict( spec = dict(

Loading…
Cancel
Save