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