'Test to see if we\'re on a cloud machine.'

def IsCloud(self, request, bios_version, services):

    if (request.bios_version_regex and bios_version):
        if re.match(request.bios_version_regex, bios_version):
            return True
    if (request.service_name_regex and services):
        if re.search(request.service_name_regex, services):
            return True
    return False
