aosp12/external/autotest/server/host_attributes.py

28 lines
742 B
Python
Raw Normal View History

2023-01-09 17:11:35 +08:00
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
try:
from autotest_lib.server import utils
except ImportError:
import logging
logging.warning("Could not import utils from autotest_lib.server. "
"Reverting to simply: `import utils`.")
import utils
class base_host_attributes(object):
def __init__(self, host):
pass
def get_attributes(self):
return []
site_host_attributes = utils.import_site_class(
__file__, "autotest_lib.server.site_host_attributes",
"HostAttributes", base_host_attributes)
class host_attributes(site_host_attributes):
pass