mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Update validate-modules (#20932)
* Update validate-modules * Validates ANSIBLE_METADATA * Ensures imports happen after documentation vars * Some pep8 cleanup * Clean up some left over unneeded code * Update modules for new module guidelines and validate-modules checks * Update imports for ec2_vpc_route_table and ec2_vpc_nat_gateway
This commit is contained in:
@@ -18,9 +18,6 @@
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
|
||||
import shlex
|
||||
|
||||
ANSIBLE_METADATA = {'status': ['preview'],
|
||||
'supported_by': 'community',
|
||||
'version': '1.0'}
|
||||
@@ -111,6 +108,8 @@ changed:
|
||||
type: bool
|
||||
"""
|
||||
|
||||
import shlex
|
||||
|
||||
NAME_EXISTS = None
|
||||
NODE1_EXISTS = None
|
||||
NODE2_EXISTS = None
|
||||
|
||||
@@ -18,8 +18,6 @@
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
import shlex
|
||||
|
||||
ANSIBLE_METADATA = {'status': ['preview'],
|
||||
'supported_by': 'community',
|
||||
'version': '1.0'}
|
||||
@@ -99,6 +97,7 @@ changed:
|
||||
type: bool
|
||||
"""
|
||||
|
||||
import shlex
|
||||
|
||||
VROUTER_EXISTS = None
|
||||
NETWORK_EXISTS = None
|
||||
|
||||
@@ -18,9 +18,6 @@
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
|
||||
import shlex
|
||||
|
||||
ANSIBLE_METADATA = {'status': ['preview'],
|
||||
'supported_by': 'community',
|
||||
'version': '1.0'}
|
||||
@@ -115,6 +112,8 @@ changed:
|
||||
type: bool
|
||||
"""
|
||||
|
||||
import shlex
|
||||
|
||||
|
||||
def get_command_from_state(state):
|
||||
"""
|
||||
|
||||
@@ -18,9 +18,6 @@
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
|
||||
import shlex
|
||||
|
||||
ANSIBLE_METADATA = {'status': ['preview'],
|
||||
'supported_by': 'community',
|
||||
'version': '1.0'}
|
||||
@@ -96,6 +93,8 @@ changed:
|
||||
type: bool
|
||||
"""
|
||||
|
||||
import shlex
|
||||
|
||||
|
||||
def pn_cli(module):
|
||||
"""
|
||||
|
||||
@@ -18,9 +18,6 @@
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
|
||||
import shlex
|
||||
|
||||
ANSIBLE_METADATA = {'status': ['preview'],
|
||||
'supported_by': 'community',
|
||||
'version': '1.0'}
|
||||
@@ -161,6 +158,9 @@ changed:
|
||||
returned: always
|
||||
type: bool
|
||||
"""
|
||||
|
||||
import shlex
|
||||
|
||||
TRUNK_EXISTS = None
|
||||
|
||||
|
||||
|
||||
@@ -18,9 +18,6 @@
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
|
||||
import shlex
|
||||
|
||||
ANSIBLE_METADATA = {'status': ['preview'],
|
||||
'supported_by': 'community',
|
||||
'version': '1.0'}
|
||||
@@ -134,6 +131,8 @@ changed:
|
||||
type: bool
|
||||
"""
|
||||
|
||||
import shlex
|
||||
|
||||
VLAG_EXISTS = None
|
||||
|
||||
|
||||
|
||||
@@ -18,9 +18,6 @@
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
|
||||
import shlex
|
||||
|
||||
ANSIBLE_METADATA = {'status': ['preview'],
|
||||
'supported_by': 'community',
|
||||
'version': '1.0'}
|
||||
@@ -114,6 +111,8 @@ changed:
|
||||
type: bool
|
||||
"""
|
||||
|
||||
import shlex
|
||||
|
||||
VLAN_EXISTS = None
|
||||
MAX_VLAN_ID = 4092
|
||||
MIN_VLAN_ID = 2
|
||||
|
||||
@@ -18,9 +18,6 @@
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
|
||||
import shlex
|
||||
|
||||
ANSIBLE_METADATA = {'status': ['preview'],
|
||||
'supported_by': 'community',
|
||||
'version': '1.0'}
|
||||
@@ -148,6 +145,8 @@ changed:
|
||||
type: bool
|
||||
"""
|
||||
|
||||
import shlex
|
||||
|
||||
VROUTER_EXISTS = None
|
||||
VROUTER_NAME_EXISTS = None
|
||||
|
||||
|
||||
@@ -18,9 +18,6 @@
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
|
||||
import shlex
|
||||
|
||||
ANSIBLE_METADATA = {'status': ['preview'],
|
||||
'supported_by': 'community',
|
||||
'version': '1.0'}
|
||||
@@ -161,6 +158,7 @@ changed:
|
||||
type: bool
|
||||
"""
|
||||
|
||||
import shlex
|
||||
|
||||
VROUTER_EXISTS = None
|
||||
NEIGHBOR_EXISTS = None
|
||||
|
||||
@@ -18,9 +18,6 @@
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
|
||||
import shlex
|
||||
|
||||
ANSIBLE_METADATA = {'status': ['preview'],
|
||||
'supported_by': 'community',
|
||||
'version': '1.0'}
|
||||
@@ -160,6 +157,7 @@ changed:
|
||||
type: bool
|
||||
"""
|
||||
|
||||
import shlex
|
||||
|
||||
VROUTER_EXISTS = None
|
||||
INTERFACE_EXISTS = None
|
||||
|
||||
@@ -18,9 +18,6 @@
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
|
||||
import shlex
|
||||
|
||||
ANSIBLE_METADATA = {'status': ['preview'],
|
||||
'supported_by': 'community',
|
||||
'version': '1.0'}
|
||||
@@ -101,6 +98,7 @@ changed:
|
||||
type: bool
|
||||
"""
|
||||
|
||||
import shlex
|
||||
|
||||
VROUTER_EXISTS = None
|
||||
LB_INTERFACE_EXISTS = None
|
||||
|
||||
Reference in New Issue
Block a user