[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)