Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix edgeos_config: {backup: yes} #37619

Merged
merged 2 commits into from Mar 21, 2018
Merged

Fix edgeos_config: {backup: yes} #37619

merged 2 commits into from Mar 21, 2018

Conversation

Qalthos
Copy link
Contributor

@Qalthos Qalthos commented Mar 19, 2018

SUMMARY

backup: yes does not do the right thing in edgeos_command because there is no action plugin to do the actual backup

Also copy some Python 3 fixes back to vyos_config's action plugin

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

edgeos_config

ANSIBLE VERSION
2.5

@@ -56,7 +56,7 @@ def run(self, tmp=None, task_vars=None):

# strip out any keys that have two leading and two trailing
# underscore characters
for key in result.keys():
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Python 3 dictionary views are not copies, so you can't modify over them

from __future__ import (absolute_import, division, print_function)
__metaclass__ = type

from ansible.plugins.action.vyos_config import ActionModule
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awful, but it works. Will replace with proper copy.

@ansibot ansibot added bug This issue/PR relates to a bug. needs_triage Needs a first human triage before being processed. networking Network category support:core This issue/PR relates to code supported by the Ansible Engineering Team. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Mar 19, 2018
@Qalthos Qalthos removed the needs_triage Needs a first human triage before being processed. label Mar 20, 2018
@ansibot ansibot added python3 and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Mar 20, 2018
@abadger
Copy link
Contributor

abadger commented Mar 20, 2018

Python3 fixes herein Look good to me. +1 on that portion of the changes.

@samdoran samdoran merged commit 6aed74a into ansible:devel Mar 21, 2018
samdoran pushed a commit to samdoran/ansible that referenced this pull request Mar 21, 2018
* Fix edgeos_config: {backup: yes}

* Add actual plugin copy

(cherry picked from commit 6aed74a)
@Qalthos Qalthos deleted the edge-backup branch March 21, 2018 19:48
samdoran added a commit that referenced this pull request Apr 11, 2018
* Fix edgeos_config: {backup: yes}

* Add actual plugin copy

(cherry picked from commit 6aed74a)
@ansible ansible locked and limited conversation to collaborators Apr 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue/PR relates to a bug. networking Network category python3 support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants