#NEWLINE# def _to_status( self , requestid , imagename , ipaddr ) : #NEWLINE# #INDENT# res = self . _vcl_request ( 'XMLRPCgetRequestStatus' , requestid ) #NEWLINE# public_ips = [ ] #NEWLINE# extra = [ ] #NEWLINE# if ( res [ 'status' ] == 'ready' ) : #NEWLINE# #INDENT# cdata = self . _to_connect_data ( requestid , self ) #NEWLINE# public_ips = [ cdata [ 'serverIP' ] ] #NEWLINE# extra = { #NEWLINE# #INDENT# 'user' : cdata [ 'user' ] , #NEWLINE# 'pass' : cdata [ 'password' ] , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# return Node ( id = requestid , name = imagename , state = self . NODE_STATE_MAP [ res [ 'status' ] ] , public_ips = public_ips , private_ips = [ ] , driver = self , image = imagename , extra = extra )