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

os_project_access: clean up some things #40763

Merged
merged 2 commits into from
Jun 7, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 2 additions & 9 deletions lib/ansible/modules/cloud/openstack/os_project_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

EXAMPLES = '''
- name: "Enable access to tiny flavor to your tenant."
os_project_Access:
os_project_access:
cloud: mycloud
state: present
target_project_id: f0f1f2f3f4f5f67f8f9e0e1
Expand All @@ -66,7 +66,7 @@


- name: "Disable access to the given flavor to project"
os_project_Access:
os_project_access:
cloud: mycloud
state: absent
target_project_id: f0f1f2f3f4f5f67f8f9e0e1
Expand Down Expand Up @@ -104,13 +104,6 @@
from ansible.module_utils.openstack import openstack_full_argument_spec, openstack_module_kwargs


def _get_allowed_projects(cloud, flavor_id):
return [x.tenant_id
for x
in cloud.nova_client.flavor_access.list(flavor=flavor_id)
]


def main():
argument_spec = openstack_full_argument_spec(
state=dict(required=False, default='present',
Expand Down