Fixed delete statement for juniper_config.py #4007 #3984

reviewable/pr18780/r1
Stian Vikan 8 years ago
parent abaaf3e797
commit 1e74d4c9a6

@ -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)

Loading…
Cancel
Save