From: Zack Cerza Date: Wed, 1 Oct 2014 23:15:10 +0000 (-0600) Subject: Use arch in lock_machines() X-Git-Tag: 1.1.0~1132 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2810096cc9e525850398bb586064e12f9a975c2c;p=teuthology.git Use arch in lock_machines() Signed-off-by: Zack Cerza --- diff --git a/teuthology/task/internal.py b/teuthology/task/internal.py index 27d2b8b1d..efdd854e4 100644 --- a/teuthology/task/internal.py +++ b/teuthology/task/internal.py @@ -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: