#NEWLINE# def ex_rebuild( self , node_id , image_id ) : #NEWLINE# #INDENT# elm = ET . Element ( 'rebuild' , { #NEWLINE# #INDENT# 'xmlns' : NAMESPACE , #NEWLINE# 'imageId' : image_id , #NEWLINE# #UNINDENT# } ) #NEWLINE# resp = self . connection . request ( ( '/servers/%s/action' % node_id ) , method = 'POST' , data = ET . tostring ( elm ) ) #NEWLINE# return ( resp . status == 202 )