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

fixes pylint used-before-assignment error #504

Merged
merged 3 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelogs/fragments/pylint_fix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
trivial:
- Fixes pylint used-before-assignment error.
2 changes: 1 addition & 1 deletion plugins/module_utils/network/iosxr/config/acls/acls.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def _compute_src_dest(dir_dict):

return cmd

def _compute_protocol_options(protocol_dict):
def _compute_protocol_options(protocol_options):
cmd = ""
for value in protocol_options.values():
for subkey, subvalue in iteritems(value):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def _tmplt_confederation_peers(config_data):

def _templ_local_as(config_data):
conf = config_data.get("local_as", {})
command = ""
if conf.get("value"):
command = "local-as " + str(conf.get("value", {}))
if "no_prepend" in conf:
Expand Down
Loading