From f5326aa6cd1be63c7f059b48e9adb21e3dfb849e Mon Sep 17 00:00:00 2001 From: akshay1610 <42538052+akshay1610@users.noreply.github.com> Date: Fri, 10 May 2019 21:51:13 +0530 Subject: [PATCH] Update os_image documentation (#49705) * Update os_image.py docs to show auth details --- lib/ansible/modules/cloud/openstack/os_image.py | 2 ++ lib/ansible/plugins/doc_fragments/openstack.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/openstack/os_image.py b/lib/ansible/modules/cloud/openstack/os_image.py index fd4a36e1d5..b76992b927 100644 --- a/lib/ansible/modules/cloud/openstack/os_image.py +++ b/lib/ansible/modules/cloud/openstack/os_image.py @@ -91,6 +91,8 @@ EXAMPLES = ''' username: admin password: passme project_name: admin + os_user_domain_name: Default + os_project_domain_name: Default name: cirros container_format: bare disk_format: qcow2 diff --git a/lib/ansible/plugins/doc_fragments/openstack.py b/lib/ansible/plugins/doc_fragments/openstack.py index 91f4985c6d..3451c3f85f 100644 --- a/lib/ansible/plugins/doc_fragments/openstack.py +++ b/lib/ansible/plugins/doc_fragments/openstack.py @@ -24,7 +24,8 @@ options: - Dictionary containing auth information as needed by the cloud's auth plugin strategy. For the default I(password) plugin, this would contain 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 (for example, I(os_user_domain_name) or I(os_project_domain_name)) if the cloud supports them. + For other plugins, this param will need to contain whatever parameters that auth plugin requires. This parameter is not needed if a named cloud is provided or OpenStack OS_* environment variables are present.