Skip to content

Commit c38f9e3

Browse files
committed
Delete module_utils/network/argspec as it is not in use
Signed-off-by: Trishna Guha <[email protected]>
1 parent b0babde commit c38f9e3

File tree

4 files changed

+10
-26
lines changed

4 files changed

+10
-26
lines changed

roles/resource_module/templates/module_utils/network/argspec/base.py.j2

Lines changed: 0 additions & 12 deletions
This file was deleted.

roles/resource_module/templates/module_utils/network_os/argspec/facts/facts.py.j2

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
The arg spec for the {{ network_os }} facts module.
77
"""
88

9-
from {{ import_path }}. \
10-
network.argspec.base import ArgspecBase
11-
12-
class FactsArgs(ArgspecBase): #pylint: disable=R0903
9+
class FactsArgs(object): #pylint: disable=R0903
1310
""" The arg spec for the {{ network_os }} facts module
1411
"""
12+
13+
def __init__(self, **kwargs):
14+
pass
15+
1516
argument_spec = {
1617
'gather_subset': dict(default=['all'], type='list')
1718
}

roles/resource_module/templates/module_utils/network_os/argspec/resource/resource.py.j2

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@
2626
The arg spec for the {{ network_os }}_{{ resource }} module
2727
"""
2828

29-
from {{ import_path }}. \
30-
network.argspec.base import ArgspecBase
31-
32-
class {{ resource|capitalize }}Args(ArgspecBase): #pylint: disable=R0903
29+
class {{ resource|capitalize }}Args(object): #pylint: disable=R0903
3330
"""The arg spec for the {{ network_os }}_{{ resource }} module
3431
"""
32+
33+
def __init__(self, **kwargs):
34+
pass
35+
3536
argument_spec = {{ rm|to_argspec }} #pylint: disable=C0301

roles/resource_module/vars/main.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import_path: "{{ import_paths[structure] }}"
2727
resource_module_directories:
2828
- "{{ module_directory }}"
2929
- module_utils
30-
- module_utils/network/argspec
3130
- module_utils/{{ network_os }}
3231
- module_utils/{{ network_os }}/argspec
3332
- module_utils/{{ network_os }}/argspec/facts
@@ -37,8 +36,6 @@ resource_module_directories:
3736
- module_utils/{{ network_os }}/facts
3837
- module_utils/{{ network_os }}/facts/{{ resource }}
3938
- module_utils/{{ network_os }}/utils
40-
- module_utils/network
41-
- module_utils/network/argspec
4239

4340
# each of the files to be templated
4441
resource_module_templates:
@@ -75,6 +72,3 @@ resource_module_templates:
7572
- source: module_utils/network_os/utils/utils.py.j2
7673
destination: "{{ parent_directory}}/module_utils/{{ network_os }}/utils/utils.py"
7774
overwrite: False
78-
- source: module_utils/network/argspec/base.py.j2
79-
destination: "{{ parent_directory}}/module_utils/network/argspec/base.py"
80-
overwrite: False

0 commit comments

Comments
 (0)