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:
Matt Martz
2017-02-02 13:45:22 -06:00
committed by Matt Clay
parent 1718719d77
commit 829c0b8f62
178 changed files with 1849 additions and 1783 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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):
"""

View File

@@ -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):
"""

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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