1# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5try: 6 from autotest_lib.server import utils 7except ImportError: 8 import logging 9 logging.warning("Could not import utils from autotest_lib.server. " 10 "Reverting to simply: `import utils`.") 11 import utils 12 13class base_host_attributes(object): 14 def __init__(self, host): 15 pass 16 17 def get_attributes(self): 18 return [] 19 20 21site_host_attributes = utils.import_site_class( 22 __file__, "autotest_lib.server.site_host_attributes", 23 "HostAttributes", base_host_attributes) 24 25 26class host_attributes(site_host_attributes): 27 pass 28