#NEWLINE# def _update_hosting_device_statuses( self , hosting_devices , statuses ) : #NEWLINE# #INDENT# adm_ctxt = n_context . get_admin_context ( ) #NEWLINE# core_plugin = manager . NeutronManager . get_plugin ( ) #NEWLINE# for ( hosting_device , status ) in zip ( hosting_devices , statuses ) : #NEWLINE# #INDENT# hd = self [ 'hosting_device' ] #NEWLINE# core_plugin . update_hosting_device ( adm_ctxt , hd [ 'id' ] , { #NEWLINE# #INDENT# 'hosting_device' : { #NEWLINE# #INDENT# 'status' : status , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } )