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

ali_vpc: setting the vpc_name to optional #306

Merged
merged 1 commit into from
Aug 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/ansible/modules/cloud/alicloud/ali_vpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
It cannot begin with http:// or https://.
This is used in combination with C(cidr_block) to determine if a VPC already exists.
aliases: ['vpc_name']
required: True
type: str
vpc_id:
description:
Expand Down Expand Up @@ -246,7 +245,7 @@ def main():
state=dict(default='present', choices=['present', 'absent']),
cidr_block=dict(type='str', required=True, aliases=['cidr']),
user_cidrs=dict(type='list', elements='str'),
name=dict(type='str', required=True, aliases=['vpc_name']),
name=dict(type='str', aliases=['vpc_name']),
vpc_id=dict(type='str', aliases=['id']),
multi_ok=dict(type='bool', default=False),
description=dict(type='str'),
Expand Down