Fix lint errors in the gcp_compute lookup plugin

This commit is contained in:
Chris Hawk 2024-11-04 10:18:57 -08:00
commit 22804f0cdc

View file

@ -7,7 +7,6 @@ __metaclass__ = type
DOCUMENTATION = """ DOCUMENTATION = """
name: gcp_compute name: gcp_compute
plugin_type: inventory
short_description: Google Cloud Compute Engine inventory source short_description: Google Cloud Compute Engine inventory source
requirements: requirements:
- requests >= 2.18.4 - requests >= 2.18.4
@ -27,14 +26,17 @@ DOCUMENTATION = """
description: A list of regions in which to describe GCE instances. description: A list of regions in which to describe GCE instances.
If none provided, it defaults to all zones available to a given project. If none provided, it defaults to all zones available to a given project.
type: list type: list
elements: string
folders: folders:
description: A folder that contains many projects description: A folder that contains many projects
type: list type: list
required: False required: False
elements: string
projects: projects:
description: A list of projects in which to describe GCE instances. description: A list of projects in which to describe GCE instances.
type: list type: list
required: False required: False
elements: string
filters: filters:
description: > description: >
A list of filter value pairs. Available filters are listed here A list of filter value pairs. Available filters are listed here
@ -42,12 +44,14 @@ DOCUMENTATION = """
Each additional filter in the list will be added as an AND condition Each additional filter in the list will be added as an AND condition
(filter1 and filter2) (filter1 and filter2)
type: list type: list
elements: string
hostnames: hostnames:
description: A list of options that describe the ordering for which description: A list of options that describe the ordering for which
hostnames should be assigned. Currently supported hostnames are hostnames should be assigned. Currently supported hostnames are
'public_ip', 'private_ip', 'name' or 'labels.vm_name'. 'public_ip', 'private_ip', 'name' or 'labels.vm_name'.
default: ['public_ip', 'private_ip', 'name'] default: ['public_ip', 'private_ip', 'name']
type: list type: list
elements: string
name_suffix: name_suffix:
description: Custom domain suffix. If set, this string will be appended to all hosts. description: Custom domain suffix. If set, this string will be appended to all hosts.
default: "" default: ""
@ -63,6 +67,7 @@ DOCUMENTATION = """
scopes: scopes:
description: list of authentication scopes description: list of authentication scopes
type: list type: list
elements: string
default: ['https://www.googleapis.com/auth/compute'] default: ['https://www.googleapis.com/auth/compute']
env: env:
- name: GCP_SCOPES - name: GCP_SCOPES