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

nxos_vrf refactor #24280

Merged
merged 2 commits into from
May 5, 2017
Merged

nxos_vrf refactor #24280

merged 2 commits into from
May 5, 2017

Conversation

trishnaguha
Copy link
Member

@trishnaguha trishnaguha commented May 4, 2017

Signed-off-by: Trishna Guha trishnaguha17@gmail.com

SUMMARY

Refactor and unit test of nxos_vrf

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

modules/network/nxos/nxos_vrf.py

ANSIBLE VERSION
devel

@trishnaguha trishnaguha added module This issue/PR relates to a module. networking Network category labels May 4, 2017
@ansibot
Copy link
Contributor

ansibot commented May 4, 2017

The test ansible-test sanity --test pep8 failed with the following error:

lib/ansible/modules/network/nxos/nxos_vrf.py:20:9: E126 continuation line over-indented for hanging indent

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented May 4, 2017

@ansibot ansibot added WIP This issue/PR is a work in progress. Nevertheless it was shared for getting input from peers. affects_2.4 This issue/PR affects Ansible v2.4 bugfix_pull_request ci_verified Changes made in this PR are causing tests to fail. labels May 4, 2017
@ansibot ansibot added community_review In order to be merged, this PR must follow the community review workflow. and removed ci_verified Changes made in this PR are causing tests to fail. labels May 4, 2017
@trishnaguha trishnaguha force-pushed the refactor_nxos_vrf branch 2 times, most recently from 919b258 to a5b8ecd Compare May 4, 2017 08:53
@trishnaguha trishnaguha changed the title [WIP] nxos_vrf refactor nxos_vrf refactor May 4, 2017
@trishnaguha trishnaguha removed the WIP This issue/PR is a work in progress. Nevertheless it was shared for getting input from peers. label May 4, 2017
@trishnaguha trishnaguha requested a review from gundalow May 4, 2017 13:21
@@ -139,14 +116,10 @@ def execute_show_command(command, module):

def apply_key_map(key_map, table):
new_dict = {}
for key, value in table.items():
for key in table.keys():
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure why I did it, but there's no need for keys() here.

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
Remove unnecessary keys() method
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
@trishnaguha trishnaguha merged commit ad0a01f into ansible:devel May 5, 2017
@trishnaguha trishnaguha deleted the refactor_nxos_vrf branch May 5, 2017 10:08
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bugfix_pull_request labels Mar 6, 2018
@dagwieers dagwieers added the nxos Cisco NXOS community label Feb 22, 2019
@dagwieers dagwieers added the cisco Cisco technologies label Feb 23, 2019
@ansible ansible locked and limited conversation to collaborators Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.4 This issue/PR affects Ansible v2.4 bug This issue/PR relates to a bug. cisco Cisco technologies community_review In order to be merged, this PR must follow the community review workflow. module This issue/PR relates to a module. networking Network category nxos Cisco NXOS community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants