2020-10-27 11:37:40 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
2022-07-21 05:27:26 +00:00
|
|
|
# Copyright (c) 2020, Felix Fontein <felix@fontein.de>
|
|
|
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
2020-10-27 11:37:40 +00:00
|
|
|
|
|
|
|
from __future__ import absolute_import, division, print_function
|
|
|
|
__metaclass__ = type
|
|
|
|
|
|
|
|
|
|
|
|
from ansible.module_utils.basic import AnsibleModule
|
|
|
|
|
2024-05-11 15:05:03 +00:00
|
|
|
from ansible_collections.community.crypto.plugins.module_utils.argspec import ArgumentSpec as _ArgumentSpec
|
2020-10-27 11:37:40 +00:00
|
|
|
|
|
|
|
|
2024-05-11 15:05:03 +00:00
|
|
|
class ArgumentSpec(_ArgumentSpec):
|
2020-10-28 20:52:54 +00:00
|
|
|
def create_ansible_module_helper(self, clazz, args, **kwargs):
|
2024-05-11 15:05:03 +00:00
|
|
|
result = super(ArgumentSpec, self).create_ansible_module_helper(clazz, args, **kwargs)
|
|
|
|
result.deprecate(
|
|
|
|
"The crypto.module_backends.common module utils is deprecated and will be removed from community.crypto 3.0.0."
|
|
|
|
" Use the argspec module utils from community.crypto instead.",
|
|
|
|
version='3.0.0',
|
|
|
|
collection_name='community.crypto',
|
|
|
|
)
|
|
|
|
return result
|
|
|
|
|
|
|
|
|
|
|
|
__all__ = ('AnsibleModule', 'ArgumentSpec')
|