update ios_facts module to use NetworkModule
minor update to ios_facts to remove get_module() in favor of NetworkModule
This commit is contained in:
parent
d5b35eb8db
commit
28a701128d
1 changed files with 2 additions and 2 deletions
|
@ -119,7 +119,7 @@ import re
|
||||||
|
|
||||||
from ansible.module_utils.basic import get_exception
|
from ansible.module_utils.basic import get_exception
|
||||||
from ansible.module_utils.netcmd import CommandRunner
|
from ansible.module_utils.netcmd import CommandRunner
|
||||||
from ansible.module_utils.ios import get_module
|
from ansible.module_utils.ios import NetworkModule
|
||||||
|
|
||||||
|
|
||||||
class FactsBase(object):
|
class FactsBase(object):
|
||||||
|
@ -373,7 +373,7 @@ def main():
|
||||||
gather_subset=dict(default=['!config'], type='list')
|
gather_subset=dict(default=['!config'], type='list')
|
||||||
)
|
)
|
||||||
|
|
||||||
module = get_module(argument_spec=spec, supports_check_mode=True)
|
module = NetworkModule(argument_spec=spec, supports_check_mode=True)
|
||||||
|
|
||||||
gather_subset = module.params['gather_subset']
|
gather_subset = module.params['gather_subset']
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue