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:
zhufl 2016-06-12 17:27:12 +08:00
parent 36754ed87d
commit ff6d0da7f0
1 changed files with 5 additions and 1 deletions

View File

@ -315,7 +315,11 @@ class ServersClient(base_compute_client.BaseComputeClient):
return self.action(server_id, 'os-start', **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})
resp, body = self.post('servers/%s/os-volume_attachments' % server_id,
post_body)