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."
This commit is contained in:
Pete Travis 2016-12-06 02:41:08 -06:00 committed by Brian Coca
parent 955f8923e7
commit 147b342553

View file

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