Skip to content

Commit fd712d2

Browse files
committed
Remove self from static methods
Signed-off-by: NilashishC <[email protected]>
1 parent bae53a4 commit fd712d2

File tree

1 file changed

+4
-4
lines changed
  • roles/resource_module/templates/module_utils/network_os/config/resource

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class {{ resource|capitalize }}(ConfigBase, {{ resource|capitalize }}Args):
105105
return commands
106106

107107
@staticmethod
108-
def _state_replaced(self, **kwargs):
108+
def _state_replaced(**kwargs):
109109
""" The command generator when state is replaced
110110
111111
:rtype: A list
@@ -116,7 +116,7 @@ class {{ resource|capitalize }}(ConfigBase, {{ resource|capitalize }}Args):
116116
return commands
117117

118118
@staticmethod
119-
def _state_overridden(self, **kwargs):
119+
def _state_overridden(**kwargs):
120120
""" The command generator when state is overridden
121121
122122
:rtype: A list
@@ -127,7 +127,7 @@ class {{ resource|capitalize }}(ConfigBase, {{ resource|capitalize }}Args):
127127
return commands
128128

129129
@staticmethod
130-
def _state_merged(self, **kwargs):
130+
def _state_merged(**kwargs):
131131
""" The command generator when state is merged
132132
133133
:rtype: A list
@@ -138,7 +138,7 @@ class {{ resource|capitalize }}(ConfigBase, {{ resource|capitalize }}Args):
138138
return commands
139139

140140
@staticmethod
141-
def _state_deleted(self, **kwargs):
141+
def _state_deleted(**kwargs):
142142
""" The command generator when state is deleted
143143
144144
:rtype: A list

0 commit comments

Comments
 (0)