autotest: Drop spurious imports of lab_inventory
BUG=chromium:780892
TEST=None
Change-Id: I775d8c2f4133fc934b31a4bb6260b074eaf55947
Reviewed-on: https://chromium-review.googlesource.com/759717
Commit-Ready: Prathmesh Prabhu <[email protected]>
Tested-by: Prathmesh Prabhu <[email protected]>
Reviewed-by: Aviv Keshet <[email protected]>
diff --git a/scheduler/rdb_hosts.py b/scheduler/rdb_hosts.py
index 76fcd70..9ab9462 100644
--- a/scheduler/rdb_hosts.py
+++ b/scheduler/rdb_hosts.py
@@ -27,7 +27,6 @@
from autotest_lib.frontend.afe import models as afe_models
from autotest_lib.scheduler import rdb_requests
from autotest_lib.scheduler import rdb_utils
-from autotest_lib.site_utils import lab_inventory
from autotest_lib.site_utils import metadata_reporter
from autotest_lib.site_utils.suite_scheduler import constants
@@ -269,7 +268,7 @@
pool = ''
if len(self.pools) == 1:
pool = self.pools[0]
- if pool in lab_inventory.MANAGED_POOLS:
+ if pool in constants.Pools.MANAGED_POOLS:
pool = 'managed:' + pool
metrics.String(self._HOST_POOL_METRIC,
diff --git a/site_utils/dut_status.py b/site_utils/dut_status.py
index 282a9a7..4c700c3 100755
--- a/site_utils/dut_status.py
+++ b/site_utils/dut_status.py
@@ -114,7 +114,7 @@
from autotest_lib.client.common_lib import time_utils
from autotest_lib.server import frontend
from autotest_lib.server.lib import status_history
-from autotest_lib.site_utils import lab_inventory
+from autotest_lib.site_utils.suite_scheduler import constants
# The fully qualified name makes for lines that are too long, so
# shorten it locally.
@@ -427,8 +427,8 @@
help='Display history for all DUTs '
'in the given pool. You might '
'be interested in the following pools: '
- + ', '.join(lab_inventory.MANAGED_POOLS[:-1])
- +', or '+ lab_inventory.MANAGED_POOLS[-1] +'.')
+ + ', '.join(constants.Pools.MANAGED_POOLS[:-1])
+ +', or '+ constants.Pools.MANAGED_POOLS[-1] +'.')
parser.add_argument('hostnames',
nargs='*',
help='Host names of DUTs to report on')