Add available params in attach_volume's comment
attach_volume in servers_client has **kwargs parameter, but no api reference link is given. so this is to add "Available params" in its comment. Change-Id: Id1c937d456ecb8dc64d050eccf7686ca20794036
This commit is contained in:
parent
36754ed87d
commit
ff6d0da7f0
@ -315,7 +315,11 @@ class ServersClient(base_compute_client.BaseComputeClient):
|
|||||||
return self.action(server_id, 'os-start', **kwargs)
|
return self.action(server_id, 'os-start', **kwargs)
|
||||||
|
|
||||||
def attach_volume(self, server_id, **kwargs):
|
def attach_volume(self, server_id, **kwargs):
|
||||||
"""Attaches a volume to a server instance."""
|
"""Attaches a volume to a server instance.
|
||||||
|
|
||||||
|
Available params: see http://developer.openstack.org/
|
||||||
|
api-ref-compute-v2.1.html#attachVolume
|
||||||
|
"""
|
||||||
post_body = json.dumps({'volumeAttachment': kwargs})
|
post_body = json.dumps({'volumeAttachment': kwargs})
|
||||||
resp, body = self.post('servers/%s/os-volume_attachments' % server_id,
|
resp, body = self.post('servers/%s/os-volume_attachments' % server_id,
|
||||||
post_body)
|
post_body)
|
||||||
|
Loading…
Reference in New Issue
Block a user