Skip to content
Snippets Groups Projects
Commit 541c514a authored by Thomas Woerner's avatar Thomas Woerner
Browse files

Add version for ansible deprecated calls

parent 85257b9d
No related branches found
No related tags found
No related merge requests found
...@@ -1132,6 +1132,7 @@ else: ...@@ -1132,6 +1132,7 @@ else:
self.deprecate( self.deprecate(
msg="FreeIPABaseModule is deprecated. Use IPAAnsibleModule.", msg="FreeIPABaseModule is deprecated. Use IPAAnsibleModule.",
version="1.5.0"
) )
# Status of an execution. Will be changed to True # Status of an execution. Will be changed to True
...@@ -1174,7 +1175,8 @@ else: ...@@ -1174,7 +1175,8 @@ else:
"FreeIPABaseModule is deprecated. Use IPAAnsibleModule. " "FreeIPABaseModule is deprecated. Use IPAAnsibleModule. "
"Use 'AnsibleFreeIPAParams.get_ipa_command_args()', " "Use 'AnsibleFreeIPAParams.get_ipa_command_args()', "
"Instantiate it using the class 'ipa_params_mapping'." "Instantiate it using the class 'ipa_params_mapping'."
) ),
version="1.5.0"
) )
mapping = IPAParamMapping(self, self.ipa_param_mapping) mapping = IPAParamMapping(self, self.ipa_param_mapping)
return mapping.get_ipa_command_args(**kwargs) return mapping.get_ipa_command_args(**kwargs)
...@@ -1185,6 +1187,7 @@ else: ...@@ -1185,6 +1187,7 @@ else:
msg=( msg=(
"FreeIPABaseModule is deprecated. Use IPAAnsibleModule. " "FreeIPABaseModule is deprecated. Use IPAAnsibleModule. "
), ),
version="1.5.0"
) )
pass # pylint: disable=unnecessary-pass pass # pylint: disable=unnecessary-pass
...@@ -1217,6 +1220,7 @@ else: ...@@ -1217,6 +1220,7 @@ else:
msg=( msg=(
"FreeIPABaseModule is deprecated. Use IPAAnsibleModule. " "FreeIPABaseModule is deprecated. Use IPAAnsibleModule. "
), ),
version="1.5.0"
) )
self.process_command_result(name, command, args, result) self.process_command_result(name, command, args, result)
...@@ -1234,6 +1238,7 @@ else: ...@@ -1234,6 +1238,7 @@ else:
"To aid in porting to IPAAnsibleModule, change to " "To aid in porting to IPAAnsibleModule, change to "
"'FreeIPABaseModule.process_results'." "'FreeIPABaseModule.process_results'."
), ),
version="1.5.0"
) )
if "completed" in result: if "completed" in result:
...@@ -1255,6 +1260,7 @@ else: ...@@ -1255,6 +1260,7 @@ else:
"FreeIPABaseModule require_ipa_attrs_change() is " "FreeIPABaseModule require_ipa_attrs_change() is "
"deprecated. Use ansible_freeipa_module.compare_args()." "deprecated. Use ansible_freeipa_module.compare_args()."
), ),
version="1.5.0"
) )
equal = compare_args_ipa(self, command_args, ipa_attrs) equal = compare_args_ipa(self, command_args, ipa_attrs)
return not equal return not equal
...@@ -1265,6 +1271,7 @@ else: ...@@ -1265,6 +1271,7 @@ else:
msg=( msg=(
"FreeIPABaseModule is deprecated. Use IPAAnsibleModule." "FreeIPABaseModule is deprecated. Use IPAAnsibleModule."
), ),
version="1.5.0"
) )
ipaapi_context = self.params_get("ipaapi_context") ipaapi_context = self.params_get("ipaapi_context")
with self.ipa_connect(context=ipaapi_context): with self.ipa_connect(context=ipaapi_context):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment