Merge "Fix AttributeError in multinode jobs"
diff --git a/tempest/api/compute/admin/test_live_migration.py b/tempest/api/compute/admin/test_live_migration.py
index ecb27c2..cfae772 100644
--- a/tempest/api/compute/admin/test_live_migration.py
+++ b/tempest/api/compute/admin/test_live_migration.py
@@ -35,7 +35,7 @@
             skip_msg = ("%s skipped as live-migration is "
                         "not available" % cls.__name__)
             raise cls.skipException(skip_msg)
-        if len(cls._get_compute_hostnames()) < 2:
+        if CONF.compute.min_compute_nodes < 2:
             raise cls.skipTest(
                 "Less than 2 compute nodes, skipping migration test.")