]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
run: machine-type: foo, not machine_type: foo
authorSage Weil <sage@inktank.com>
Thu, 28 Mar 2013 17:50:40 +0000 (10:50 -0700)
committerSage Weil <sage@inktank.com>
Thu, 28 Mar 2013 22:25:10 +0000 (15:25 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
teuthology/run.py

index f15bb99205511b6568df7dac7d345954a353acaf..6b7d89b23b9fe9a7f6455f44b3754f1021dc2ede 100644 (file)
@@ -103,7 +103,9 @@ def main():
 
     machine_type = ctx.machine_type
     if machine_type is None:
-        machine_type = ctx.config.get('machine_type', 'plana')
+        machine_type = ctx.config.get('machine-type')
+        if machine_type is None:
+            machine_type = ctx.config.get('machine_type', 'plana')
 
     if ctx.block:
         assert ctx.lock, \