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

* fixes junos_template (fixes #3962)
* fixes junos_config
reviewable/pr18780/r1
Peter Sprygada 8 years ago committed by GitHub
parent 201d041c4b
commit 2db006450d

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

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

Loading…
Cancel
Save