'Test for non-empty setting in connector.'

@staticmethod
def validate_connector_has_setting(connector, setting):

    if ((setting not in connector) or (not connector[setting])):
        LOG.error("FibreChannelDriver    validate_connector    failed.    No    '%(setting)s'.    Make    sure    HBA    state    is    Online.", {'setting': setting})
        raise exception.InvalidConnectorException(missing=setting)
