#NEWLINE# @ put ( '/:hypervisor/:host/guests/:guest_id/disks/:disk_id' ) #NEWLINE# def disk_update( hypervisor , host , guest_id , disk_id ) : #NEWLINE# #INDENT# '\n    Update a disk in a given guest\n\n    ::\n\n      PUT /:hypervisor/:host/guests/:guest_id/disks/:disk_id\n\n    ' #NEWLINE# response . content_type = 'application/json' #NEWLINE# manager = create_manager ( hypervisor , host ) #NEWLINE# data = request . body . readline ( ) #NEWLINE# if ( not data ) : #NEWLINE# #INDENT# abort ( 400 , 'No data received' ) #NEWLINE# #UNINDENT# data = json . loads ( data ) #NEWLINE# nwi_info = manager . disk_update ( guest_id , disk_id , data ) #NEWLINE# manager . logout ( ) #NEWLINE# return json . dumps ( nwi_info )