[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)
pull/45657/merge
Michael Scherer 6 years ago committed by Sloane Hertel
parent 3782a236ba
commit a1e2f1bf73

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

Loading…
Cancel
Save