Skip to content

Commit 19f9998

Browse files
committed
Fix review comments
1 parent 5a6bc5c commit 19f9998

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

rmb_tests/roles/my_role/module_utils/network/myos/config/interfaces/interfaces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
necessary to bring the current configuration to it's desired end-state is
1111
created
1212
"""
13-
from ansible.module_utils.network.common.config.base import ConfigBase
13+
from ansible.module_utils.network.common.cfg.base import ConfigBase
1414
from ansible.module_utils.network.common.utils import to_list
1515
from ansible.module_utils.network.myos.facts.facts import Facts
1616

rmb_tests/roles/my_role/module_utils/network/myos/facts/interfaces/interfaces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,4 @@ def render_config(self, spec, conf):
112112
except TypeError:
113113
config['some_int'] = None
114114

115-
return utils.generate_final_config(config)
115+
return utils.remove_empties(config)

roles/scaffold_rm_facts/templates/module_utils/network_os/config/resource/resource.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ is compared to the provided configuration (as dict) and the command set
1010
necessary to bring the current configuration to it's desired end-state is
1111
created
1212
"""
13-
from ansible.module_utils.network.common.config.base import ConfigBase
13+
from ansible.module_utils.network.common.cfg.base import ConfigBase
1414
from ansible.module_utils.network.common.utils import to_list
1515
from {{ import_path }}.{{ network_os }}.facts.facts import Facts
1616

roles/scaffold_rm_facts/templates/module_utils/network_os/facts/resource/resource.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,4 @@ class {{ resource|capitalize }}Facts(object):
112112
except TypeError:
113113
config['some_int'] = None
114114

115-
return utils.generate_final_config(config)
115+
return utils.remove_empties(config)

0 commit comments

Comments
 (0)