'Checks that the API version is correct.'

def _check_api_version(self):

    if (self.api_version < MIN_API_VERSION):
        ex_msg = (_('Invalid    HPELeftHand    API    version    found:    %(found)s.    Version    %(minimum)s    or    greater    required    for    manage/unmanage    support.') % {'found': self.api_version, 'minimum': MIN_API_VERSION})
        LOG.error(ex_msg)
        raise exception.InvalidInput(reason=ex_msg)
