device path is optional for cbs

per
https://developer.rackspace.com/docs/cloud-servers/v2/api-reference/svr-basic-operations/#post-attach-volume-to-server-servers-server-id-os-volume-attachments
, device is "The name of the device, such as /dev/xvdb. Specify null for
auto- assignment."
pull/20075/merge
Pete Travis 8 years ago committed by Brian Coca
parent 955f8923e7
commit 147b342553

@ -33,7 +33,7 @@ options:
description: description:
- The device path to attach the volume to, e.g. /dev/xvde - The device path to attach the volume to, e.g. /dev/xvde
default: null default: null
required: true required: false
volume: volume:
description: description:
- Name or id of the volume to attach/detach - Name or id of the volume to attach/detach
@ -189,7 +189,7 @@ def main():
argument_spec = rax_argument_spec() argument_spec = rax_argument_spec()
argument_spec.update( argument_spec.update(
dict( dict(
device=dict(required=True), device=dict(required=False),
volume=dict(required=True), volume=dict(required=True),
server=dict(required=True), server=dict(required=True),
state=dict(default='present', choices=['present', 'absent']), state=dict(default='present', choices=['present', 'absent']),

Loading…
Cancel
Save