roll up of unicode fixes in junos modules (#5113)

* fixes junos_template (fixes #3962)
* fixes junos_config
This commit is contained in:
Peter Sprygada 2016-09-30 16:25:31 -04:00 committed by Matt Clay
parent 62bf8d0c78
commit d58462949f
2 changed files with 2 additions and 2 deletions

View file

@ -144,7 +144,7 @@ def main():
"set per junos-pyez documentation")
results = dict(changed=False)
results['_backup'] = str(module.config.get_config()).strip()
results['_backup'] = unicode(module.config.get_config()).strip()
try:
diff = module.config.load_config(src, commit=commit, replace=replace,

View file

@ -213,7 +213,7 @@ def config_to_commands(config):
return commands
def diff_commands(commands, config):
config = [str(c).replace("'", '') for c in config]
config = [unicode(c).replace("'", '') for c in config]
updates = list()
visited = set()