From 97ce6a500db2c654426078875aae7b6aff6e7b94 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Fri, 5 Jun 2015 16:01:15 -0400 Subject: [PATCH] Update doc params and version_added --- lib/ansible/modules/cloud/openstack/os_image.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/ansible/modules/cloud/openstack/os_image.py b/lib/ansible/modules/cloud/openstack/os_image.py index 7e97b3800a9..ffc99064ad2 100644 --- a/lib/ansible/modules/cloud/openstack/os_image.py +++ b/lib/ansible/modules/cloud/openstack/os_image.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# Copyright (c) 2014 Hewlett-Packard Development Company, L.P. +# Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # Copyright (c) 2013, Benno Joy # # This module is free software: you can redistribute it and/or modify @@ -29,7 +29,7 @@ DOCUMENTATION = ''' module: os_image short_description: Add/Delete images from OpenStack Cloud extends_documentation_fragment: openstack -version_added: "1.10" +version_added: "2.0" description: - Add or Remove images from the OpenStack Image Repository options: @@ -86,18 +86,21 @@ options: properties: description: - Additional properties to be associated with this image -requirements: ["shade"] + required: false + default: {} state: description: - Should the resource be present or absent. choices: [present, absent] default: present +requirements: ["shade"] ''' EXAMPLES = ''' # Upload an image from a local file named cirros-0.3.0-x86_64-disk.img - os_image: auth: + auth_url: http://localhost/auth/v2.0 username: admin password: passme project_name: admin @@ -113,8 +116,6 @@ EXAMPLES = ''' distro: ubuntu ''' -import time - def main():