'Return volume connector information.'

def get_volume_connector(self, instance):

    try:
        vm_ref = vm_util.get_vm_ref(self._session, instance)
    except exception.InstanceNotFound:
        vm_ref = None
    iqn = self._iscsi_get_host_iqn(instance)
    connector = {'ip': CONF.vmware.host_ip, 'initiator': iqn, 'host': CONF.vmware.host_ip}
    if vm_ref:
        connector['instance'] = vm_ref.value
    return connector
