Update doc params and version_added

This commit is contained in:
Monty Taylor 2015-06-05 16:01:15 -04:00 committed by Matt Clay
parent f6f2359400
commit 97ce6a500d

View file

@ -1,6 +1,6 @@
#!/usr/bin/python #!/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 <benno@ansible.com> # Copyright (c) 2013, Benno Joy <benno@ansible.com>
# #
# This module is free software: you can redistribute it and/or modify # This module is free software: you can redistribute it and/or modify
@ -29,7 +29,7 @@ DOCUMENTATION = '''
module: os_image module: os_image
short_description: Add/Delete images from OpenStack Cloud short_description: Add/Delete images from OpenStack Cloud
extends_documentation_fragment: openstack extends_documentation_fragment: openstack
version_added: "1.10" version_added: "2.0"
description: description:
- Add or Remove images from the OpenStack Image Repository - Add or Remove images from the OpenStack Image Repository
options: options:
@ -86,18 +86,21 @@ options:
properties: properties:
description: description:
- Additional properties to be associated with this image - Additional properties to be associated with this image
requirements: ["shade"] required: false
default: {}
state: state:
description: description:
- Should the resource be present or absent. - Should the resource be present or absent.
choices: [present, absent] choices: [present, absent]
default: present default: present
requirements: ["shade"]
''' '''
EXAMPLES = ''' EXAMPLES = '''
# Upload an image from a local file named cirros-0.3.0-x86_64-disk.img # Upload an image from a local file named cirros-0.3.0-x86_64-disk.img
- os_image: - os_image:
auth: auth:
auth_url: http://localhost/auth/v2.0
username: admin username: admin
password: passme password: passme
project_name: admin project_name: admin
@ -113,8 +116,6 @@ EXAMPLES = '''
distro: ubuntu distro: ubuntu
''' '''
import time
def main(): def main():