#NEWLINE# def get_volume_connector( self , instance ) : #NEWLINE# #INDENT# 'Return volume connector information.' #NEWLINE# try : #NEWLINE# #INDENT# vm_ref = vm_util . get_vm_ref ( self . _session , instance ) #NEWLINE# #UNINDENT# except exception . InstanceNotFound : #NEWLINE# #INDENT# vm_ref = None #NEWLINE# #UNINDENT# iqn = self . _iscsi_get_host_iqn ( instance ) #NEWLINE# connector = { #NEWLINE# #INDENT# 'ip' : CONF . vmware . host_ip , #NEWLINE# 'initiator' : iqn , #NEWLINE# 'host' : CONF . vmware . host_ip , #NEWLINE# #UNINDENT# } #NEWLINE# if vm_ref : #NEWLINE# #INDENT# connector [ 'instance' ] = vm_ref . value #NEWLINE# #UNINDENT# return connector