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:
parent
955f8923e7
commit
147b342553
1 changed files with 2 additions and 2 deletions
|
@ -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']),
|
||||
|
|
Loading…
Reference in a new issue