Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible FreeIPA
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Ansible FreeIPA
Commits
541c514a
Commit
541c514a
authored
3 years ago
by
Thomas Woerner
Browse files
Options
Downloads
Patches
Plain Diff
Add version for ansible deprecated calls
parent
85257b9d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/module_utils/ansible_freeipa_module.py
+8
-1
8 additions, 1 deletion
plugins/module_utils/ansible_freeipa_module.py
with
8 additions
and
1 deletion
plugins/module_utils/ansible_freeipa_module.py
+
8
−
1
View file @
541c514a
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment