Fixed delete statement for juniper_config.py #4007 #3984

This commit is contained in:
Stian Vikan 2016-06-24 16:06:25 +02:00 committed by Matt Clay
commit 714ced8e1c

View file

@ -132,8 +132,8 @@ def diff_config(candidate, config):
elif action == 'delete': elif action == 'delete':
for cfg in config: for cfg in config:
if cfg.startswith(cfgline): if cfg[4:].startswith(cfgline):
updates.add(cfgline) updates.add(line)
return list(updates) return list(updates)