Bug fixes for GCP modules (#63606)

pull/63605/merge
The Magician 5 years ago committed by ansibot
parent 66202c385e
commit ce9e909a5b

@ -32,8 +32,6 @@ DOCUMENTATION = '''
module: gcp_compute_ssl_certificate_info
description:
- Gather info for GCP SslCertificate
- This module was called C(gcp_compute_ssl_certificate_facts) before Ansible 2.9.
The usage has not changed.
short_description: Gather info for GCP SslCertificate
version_added: '2.7'
author: Google Inc. (@googlecloudplatform)
@ -167,9 +165,6 @@ import json
def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_ssl_certificate_facts':
module.deprecate("The 'gcp_compute_ssl_certificate_facts' module has been renamed to 'gcp_compute_ssl_certificate_info'", version='2.13')
if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -32,8 +32,6 @@ DOCUMENTATION = '''
module: gcp_compute_ssl_policy_info
description:
- Gather info for GCP SslPolicy
- This module was called C(gcp_compute_ssl_policy_facts) before Ansible 2.9. The usage
has not changed.
short_description: Gather info for GCP SslPolicy
version_added: '2.7'
author: Google Inc. (@googlecloudplatform)
@ -205,9 +203,6 @@ import json
def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_ssl_policy_facts':
module.deprecate("The 'gcp_compute_ssl_policy_facts' module has been renamed to 'gcp_compute_ssl_policy_info'", version='2.13')
if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -32,8 +32,6 @@ DOCUMENTATION = '''
module: gcp_compute_subnetwork_info
description:
- Gather info for GCP Subnetwork
- This module was called C(gcp_compute_subnetwork_facts) before Ansible 2.9. The usage
has not changed.
short_description: Gather info for GCP Subnetwork
version_added: '2.7'
author: Google Inc. (@googlecloudplatform)
@ -228,9 +226,6 @@ import json
def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str')))
if module._name == 'gcp_compute_subnetwork_facts':
module.deprecate("The 'gcp_compute_subnetwork_facts' module has been renamed to 'gcp_compute_subnetwork_info'", version='2.13')
if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -32,8 +32,6 @@ DOCUMENTATION = '''
module: gcp_compute_target_http_proxy_info
description:
- Gather info for GCP TargetHttpProxy
- This module was called C(gcp_compute_target_http_proxy_facts) before Ansible 2.9.
The usage has not changed.
short_description: Gather info for GCP TargetHttpProxy
version_added: '2.7'
author: Google Inc. (@googlecloudplatform)
@ -161,9 +159,6 @@ import json
def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_target_http_proxy_facts':
module.deprecate("The 'gcp_compute_target_http_proxy_facts' module has been renamed to 'gcp_compute_target_http_proxy_info'", version='2.13')
if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -32,8 +32,6 @@ DOCUMENTATION = '''
module: gcp_compute_target_https_proxy_info
description:
- Gather info for GCP TargetHttpsProxy
- This module was called C(gcp_compute_target_https_proxy_facts) before Ansible 2.9.
The usage has not changed.
short_description: Gather info for GCP TargetHttpsProxy
version_added: '2.7'
author: Google Inc. (@googlecloudplatform)
@ -184,9 +182,6 @@ import json
def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_target_https_proxy_facts':
module.deprecate("The 'gcp_compute_target_https_proxy_facts' module has been renamed to 'gcp_compute_target_https_proxy_info'", version='2.13')
if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -32,8 +32,6 @@ DOCUMENTATION = '''
module: gcp_compute_target_pool_info
description:
- Gather info for GCP TargetPool
- This module was called C(gcp_compute_target_pool_facts) before Ansible 2.9. The
usage has not changed.
short_description: Gather info for GCP TargetPool
version_added: '2.7'
author: Google Inc. (@googlecloudplatform)
@ -220,9 +218,6 @@ import json
def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str')))
if module._name == 'gcp_compute_target_pool_facts':
module.deprecate("The 'gcp_compute_target_pool_facts' module has been renamed to 'gcp_compute_target_pool_info'", version='2.13')
if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -32,8 +32,6 @@ DOCUMENTATION = '''
module: gcp_compute_target_ssl_proxy_info
description:
- Gather info for GCP TargetSslProxy
- This module was called C(gcp_compute_target_ssl_proxy_facts) before Ansible 2.9.
The usage has not changed.
short_description: Gather info for GCP TargetSslProxy
version_added: '2.7'
author: Google Inc. (@googlecloudplatform)
@ -180,9 +178,6 @@ import json
def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_target_ssl_proxy_facts':
module.deprecate("The 'gcp_compute_target_ssl_proxy_facts' module has been renamed to 'gcp_compute_target_ssl_proxy_info'", version='2.13')
if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -32,8 +32,6 @@ DOCUMENTATION = '''
module: gcp_compute_target_tcp_proxy_info
description:
- Gather info for GCP TargetTcpProxy
- This module was called C(gcp_compute_target_tcp_proxy_facts) before Ansible 2.9.
The usage has not changed.
short_description: Gather info for GCP TargetTcpProxy
version_added: '2.7'
author: Google Inc. (@googlecloudplatform)
@ -166,9 +164,6 @@ import json
def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_target_tcp_proxy_facts':
module.deprecate("The 'gcp_compute_target_tcp_proxy_facts' module has been renamed to 'gcp_compute_target_tcp_proxy_info'", version='2.13')
if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -32,8 +32,6 @@ DOCUMENTATION = '''
module: gcp_compute_target_vpn_gateway_info
description:
- Gather info for GCP TargetVpnGateway
- This module was called C(gcp_compute_target_vpn_gateway_facts) before Ansible 2.9.
The usage has not changed.
short_description: Gather info for GCP TargetVpnGateway
version_added: '2.7'
author: Google Inc. (@googlecloudplatform)
@ -182,9 +180,6 @@ import json
def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str')))
if module._name == 'gcp_compute_target_vpn_gateway_facts':
module.deprecate("The 'gcp_compute_target_vpn_gateway_facts' module has been renamed to 'gcp_compute_target_vpn_gateway_info'", version='2.13')
if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -32,8 +32,6 @@ DOCUMENTATION = '''
module: gcp_compute_url_map_info
description:
- Gather info for GCP UrlMap
- This module was called C(gcp_compute_url_map_facts) before Ansible 2.9. The usage
has not changed.
short_description: Gather info for GCP UrlMap
version_added: '2.7'
author: Google Inc. (@googlecloudplatform)
@ -262,9 +260,6 @@ import json
def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str')))
if module._name == 'gcp_compute_url_map_facts':
module.deprecate("The 'gcp_compute_url_map_facts' module has been renamed to 'gcp_compute_url_map_info'", version='2.13')
if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -32,8 +32,6 @@ DOCUMENTATION = '''
module: gcp_compute_vpn_tunnel_info
description:
- Gather info for GCP VpnTunnel
- This module was called C(gcp_compute_vpn_tunnel_facts) before Ansible 2.9. The usage
has not changed.
short_description: Gather info for GCP VpnTunnel
version_added: '2.7'
author: Google Inc. (@googlecloudplatform)
@ -215,9 +213,6 @@ import json
def main():
module = GcpModule(argument_spec=dict(filters=dict(type='list', elements='str'), region=dict(required=True, type='str')))
if module._name == 'gcp_compute_vpn_tunnel_facts':
module.deprecate("The 'gcp_compute_vpn_tunnel_facts' module has been renamed to 'gcp_compute_vpn_tunnel_info'", version='2.13')
if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/compute']

@ -32,8 +32,6 @@ DOCUMENTATION = '''
module: gcp_container_cluster_info
description:
- Gather info for GCP Cluster
- This module was called C(gcp_container_cluster_facts) before Ansible 2.9. The usage
has not changed.
short_description: Gather info for GCP Cluster
version_added: '2.8'
author: Google Inc. (@googlecloudplatform)
@ -728,9 +726,6 @@ import json
def main():
module = GcpModule(argument_spec=dict(location=dict(required=True, type='str', aliases=['region', 'zone'])))
if module._name == 'gcp_container_cluster_facts':
module.deprecate("The 'gcp_container_cluster_facts' module has been renamed to 'gcp_container_cluster_info'", version='2.13')
if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/cloud-platform']

Loading…
Cancel
Save