mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 19:01:26 -07:00
Remove unneeded required_one_of for openstack
We're being too strict - there is a third possibility, which is that a user will have defined the OS_* environment variables and expect them to pass through.
This commit is contained in:
parent
dee2d53b3e
commit
b659621575
3 changed files with 7 additions and 12 deletions
|
@ -93,11 +93,7 @@ def openstack_full_argument_spec(**kwargs):
|
||||||
|
|
||||||
|
|
||||||
def openstack_module_kwargs(**kwargs):
|
def openstack_module_kwargs(**kwargs):
|
||||||
ret = dict(
|
ret = {}
|
||||||
required_one_of=[
|
|
||||||
['cloud', 'auth'],
|
|
||||||
],
|
|
||||||
)
|
|
||||||
for key in ('mutually_exclusive', 'required_together', 'required_one_of'):
|
for key in ('mutually_exclusive', 'required_together', 'required_one_of'):
|
||||||
if key in kwargs:
|
if key in kwargs:
|
||||||
if key in ret:
|
if key in ret:
|
||||||
|
|
|
@ -23,7 +23,9 @@ class ModuleDocFragment(object):
|
||||||
options:
|
options:
|
||||||
cloud:
|
cloud:
|
||||||
description:
|
description:
|
||||||
- Named cloud to operate against. Provides default values for I(auth) and I(auth_plugin)
|
- Named cloud to operate against. Provides default values for I(auth) and
|
||||||
|
I(auth_type). This parameter is not needed if I(auth) is provided or if
|
||||||
|
OpenStack OS_* environment variables are present.
|
||||||
required: false
|
required: false
|
||||||
auth:
|
auth:
|
||||||
description:
|
description:
|
||||||
|
@ -32,7 +34,8 @@ options:
|
||||||
I(auth_url), I(username), I(password), I(project_name) and any
|
I(auth_url), I(username), I(password), I(project_name) and any
|
||||||
information about domains if the cloud supports them. For other plugins,
|
information about domains if the cloud supports them. For other plugins,
|
||||||
this param will need to contain whatever parameters that auth plugin
|
this param will need to contain whatever parameters that auth plugin
|
||||||
requires. This parameter is not needed if a named cloud is provided.
|
requires. This parameter is not needed if a named cloud is provided or
|
||||||
|
OpenStack OS_* environment variables are present.
|
||||||
required: false
|
required: false
|
||||||
auth_type:
|
auth_type:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -93,11 +93,7 @@ def openstack_full_argument_spec(**kwargs):
|
||||||
|
|
||||||
|
|
||||||
def openstack_module_kwargs(**kwargs):
|
def openstack_module_kwargs(**kwargs):
|
||||||
ret = dict(
|
ret = {}
|
||||||
required_one_of=[
|
|
||||||
['cloud', 'auth'],
|
|
||||||
],
|
|
||||||
)
|
|
||||||
for key in ('mutually_exclusive', 'required_together', 'required_one_of'):
|
for key in ('mutually_exclusive', 'required_together', 'required_one_of'):
|
||||||
if key in kwargs:
|
if key in kwargs:
|
||||||
if key in ret:
|
if key in ret:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue