From: Loic Dachary Date: Sat, 26 Mar 2016 18:41:59 +0000 (+0100) Subject: lock: add the --arch option X-Git-Tag: 1.1.0~629^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4f96ec0481dd173c8f45d404225756e88251b092;p=teuthology.git lock: add the --arch option So that it is possible to lock a target of a given arch. The lock_many function already has the argument, it only needs to be added to the list of available options. Signed-off-by: Loic Dachary --- diff --git a/scripts/lock.py b/scripts/lock.py index 4b7de691c..a8071825a 100644 --- a/scripts/lock.py +++ b/scripts/lock.py @@ -158,6 +158,11 @@ def parse_args(argv): default=None, help='OS (distro) version such as "12.10"', ) + parser.add_argument( + '--arch', + default=None, + help='architecture (x86_64, i386, armv7, arm64)', + ) parser.add_argument( '--json-query', default=None, diff --git a/teuthology/lock.py b/teuthology/lock.py index 34b533129..d9930a917 100644 --- a/teuthology/lock.py +++ b/teuthology/lock.py @@ -333,7 +333,7 @@ def main(ctx): machines_to_update.append(machine) elif ctx.num_to_lock: result = lock_many(ctx, ctx.num_to_lock, ctx.machine_type, user, - ctx.desc, ctx.os_type, ctx.os_version) + ctx.desc, ctx.os_type, ctx.os_version, ctx.arch) if not result: ret = 1 else: