1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

[voss_facts] remove uneeded global declaration of variable warnings (#45653)

Since the variable is used only once, no need to declare it global.
Remove a warning from linter (lgtm.com)
This commit is contained in:
Michael Scherer 2018-09-14 16:39:41 +02:00 committed by Sloane Hertel
parent 3782a236ba
commit a1e2f1bf73

View file

@ -441,9 +441,6 @@ FACT_SUBSETS = dict(
VALID_SUBSETS = frozenset(FACT_SUBSETS.keys())
global warnings
warnings = list()
def main():
"""main entry point for module execution
@ -504,6 +501,7 @@ def main():
key = 'ansible_net_%s' % key
ansible_facts[key] = value
warnings = list()
check_args(module, warnings)
module.exit_json(ansible_facts=ansible_facts, warnings=warnings)