]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Use arch in lock_machines()
authorZack Cerza <zack.cerza@inktank.com>
Wed, 1 Oct 2014 23:15:10 +0000 (17:15 -0600)
committerZack Cerza <zack.cerza@inktank.com>
Wed, 1 Oct 2014 23:15:10 +0000 (17:15 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/task/internal.py

index 27d2b8b1d6c22a72eecb60510b014bd90903a31c..efdd854e4697ea3de6bdc20f8e6f6dbc7273d86e 100644 (file)
@@ -65,6 +65,7 @@ def lock_machines(ctx, config):
     """
     os_type = ctx.config.get('os_type')
     os_version = ctx.config.get('os_version')
+    arch = ctx.config.get('arch')
     log.info('Locking machines...')
     assert isinstance(config[0], int), 'config[0] must be an integer'
     machine_type = config[1]
@@ -98,7 +99,7 @@ def lock_machines(ctx, config):
                 assert 0, 'not enough machines free'
 
         newly_locked = lock.lock_many(ctx, how_many, machine_type, ctx.owner,
-                                      ctx.archive, os_type, os_version)
+                                      ctx.archive, os_type, os_version, arch)
         if not newly_locked and not isinstance(newly_locked, list):
             raise RuntimeError('Invalid parameters specified')
         if len(newly_locked) == how_many: