mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Fix spacing in os_project_access docs
Import openstack_module_kwargs
This commit is contained in:
@@ -28,22 +28,22 @@ description:
|
|||||||
- Add or remove flavor, volume_type or other resources access
|
- Add or remove flavor, volume_type or other resources access
|
||||||
from OpenStack.
|
from OpenStack.
|
||||||
options:
|
options:
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Indicate desired state of the resource.
|
- Indicate desired state of the resource.
|
||||||
choices: ['present', 'absent']
|
choices: ['present', 'absent']
|
||||||
required: false
|
required: false
|
||||||
default: present
|
default: present
|
||||||
target_project_id:
|
target_project_id:
|
||||||
description:
|
description:
|
||||||
- Project id.
|
- Project id.
|
||||||
required: true
|
required: true
|
||||||
resource_type:
|
resource_type:
|
||||||
description:
|
description:
|
||||||
- The resource type (eg. nova_flavor, cinder_volume_type).
|
- The resource type (eg. nova_flavor, cinder_volume_type).
|
||||||
resource_name:
|
resource_name:
|
||||||
description:
|
description:
|
||||||
- The resource name (eg. tiny).
|
- The resource name (eg. tiny).
|
||||||
requirements:
|
requirements:
|
||||||
- "shade"
|
- "shade"
|
||||||
|
|
||||||
@@ -95,8 +95,7 @@ except ImportError:
|
|||||||
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
from ansible.module_utils.openstack import openstack_full_argument_spec
|
from ansible.module_utils.openstack import openstack_full_argument_spec, openstack_module_kwargs
|
||||||
|
|
||||||
|
|
||||||
def _get_allowed_projects(cloud, flavor_id):
|
def _get_allowed_projects(cloud, flavor_id):
|
||||||
return [x.tenant_id
|
return [x.tenant_id
|
||||||
|
|||||||
Reference in New Issue
Block a user