Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fixes for GCP (as of 2019-10-17T06:05:58Z) #63606

Merged
merged 1 commit into from
Oct 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
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)
Expand Down Expand Up @@ -167,9 +165,6 @@
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']

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
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)
Expand Down Expand Up @@ -205,9 +203,6 @@
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']

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
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)
Expand Down Expand Up @@ -228,9 +226,6 @@
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']

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
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)
Expand Down Expand Up @@ -161,9 +159,6 @@
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']

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
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)
Expand Down Expand Up @@ -184,9 +182,6 @@
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']

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
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)
Expand Down Expand Up @@ -220,9 +218,6 @@
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']

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
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)
Expand Down Expand Up @@ -180,9 +178,6 @@
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']

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
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)
Expand Down Expand Up @@ -166,9 +164,6 @@
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']

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
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)
Expand Down Expand Up @@ -182,9 +180,6 @@
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']

Expand Down
5 changes: 0 additions & 5 deletions lib/ansible/modules/cloud/google/gcp_compute_url_map_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
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)
Expand Down Expand Up @@ -262,9 +260,6 @@
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']

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
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)
Expand Down Expand Up @@ -215,9 +213,6 @@
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']

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
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)
Expand Down Expand Up @@ -728,9 +726,6 @@
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']

Expand Down