'Adds a iscsi send target to the hba.'

def _add_iscsi_send_tgt(self, method, *args, **kwargs):

    send_targets = kwargs.get('targets')
    host_storage_sys = _get_objects('HostStorageSystem').objects[0]
    iscsi_hba_array = host_storage_sys.get('storageDeviceInfo.hostBusAdapter')
    iscsi_hba = iscsi_hba_array.HostHostBusAdapter[0]
    if hasattr(iscsi_hba, 'configuredSendTarget'):
        iscsi_hba.configuredSendTarget.extend(send_targets)
    else:
        iscsi_hba.configuredSendTarget = send_targets
