Skip to content

Commit

Permalink
remove automatic commit
Browse files Browse the repository at this point in the history
Former-commit-id: a7df2cc
  • Loading branch information
afourmy committed Jan 15, 2018
1 parent ed382af commit 676256a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions source/automation/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
napalm_actions = OrderedDict([
('Load merge', 'load_merge_candidate'),
('Load replace', 'load_replace_candidate'),
('Commit', 'commit_config'),
('Discard', 'discard_config'),
('Rollback', 'rollback'),
])
Expand Down
2 changes: 0 additions & 2 deletions source/scheduling/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ def napalm_config_process(kwargs):
napalm_driver.open()
if kwargs['action'] in ('load_merge_candidate', 'load_replace_candidate'):
getattr(napalm_driver, kwargs['action'])(config=kwargs['script'])
napalm_driver.commit_config()
print('commit OK')
else:
getattr(napalm_driver, kwargs['action'])()
napalm_driver.close()
Expand Down

0 comments on commit 676256a

Please sign in to comment.