'Checks for incorrect LeftHand API being used on backend.'

def check_for_setup_error(self):

    client = self._login()
    try:
        self.api_version = client.getApiVersion()
        LOG.info('HPELeftHand    API    version    %s', self.api_version)
        if (self.api_version < MIN_API_VERSION):
            LOG.warning('HPELeftHand    API    is    version    %(current)s.    A    minimum    version    of    %(min)s    is    needed    for    manage/unmanage    support.', {'current': self.api_version, 'min': MIN_API_VERSION})
    finally:
        self._logout(client)
