Skip to content

Commit

Permalink
fix MM locations (#4394) (#363)
Browse files Browse the repository at this point in the history
Co-authored-by: upodroid <cy@borg.dev>
Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: upodroid <cy@borg.dev>
  • Loading branch information
modular-magician and upodroid authored Jan 12, 2021
1 parent 4b8faad commit df8a9d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions plugins/modules/gcp_tpu_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@
type: dict
zone:
description:
- The GCP location for the TPU.
required: true
- The GCP location for the TPU. If it is not provided, the provider zone is used.
required: false
type: str
project:
description:
Expand Down Expand Up @@ -275,7 +275,7 @@
type: dict
zone:
description:
- The GCP location for the TPU.
- The GCP location for the TPU. If it is not provided, the provider zone is used.
returned: success
type: str
'''
Expand Down Expand Up @@ -315,7 +315,7 @@ def main():
use_service_networking=dict(type='bool'),
scheduling_config=dict(type='dict', options=dict(preemptible=dict(required=True, type='bool'))),
labels=dict(type='dict'),
zone=dict(required=True, type='str'),
zone=dict(type='str'),
),
mutually_exclusive=[['cidr_block', 'use_service_networking']],
)
Expand Down
9 changes: 5 additions & 4 deletions plugins/modules/gcp_tpu_node_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
options:
zone:
description:
- The GCP location for the TPU.
required: true
- The GCP location for the TPU. If it is not provided, the provider zone is used.
required: false
type: str
project:
description:
Expand Down Expand Up @@ -202,7 +202,8 @@
type: dict
zone:
description:
- The GCP location for the TPU.
- The GCP location for the TPU. If it is not provided, the provider zone is
used.
returned: success
type: str
'''
Expand All @@ -219,7 +220,7 @@


def main():
module = GcpModule(argument_spec=dict(zone=dict(required=True, type='str')))
module = GcpModule(argument_spec=dict(zone=dict(type='str')))

if not module.params['scopes']:
module.params['scopes'] = ['https://www.googleapis.com/auth/cloud-platform']
Expand Down

0 comments on commit df8a9d7

Please sign in to comment.