]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
lock: add the --arch option 835/head
authorLoic Dachary <ldachary@redhat.com>
Sat, 26 Mar 2016 18:41:59 +0000 (19:41 +0100)
committerLoic Dachary <ldachary@redhat.com>
Fri, 1 Apr 2016 08:56:40 +0000 (10:56 +0200)
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 <loic@dachary.org>
scripts/lock.py
teuthology/lock.py

index 4b7de691ccf00aaa92a848e0878f5805ce71f334..a8071825ae5ba8258071bc2bb01532b4cae4c884 100644 (file)
@@ -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,
index 34b53312915169b317685542666699f67dde4c0f..d9930a9178c6f5df19697d44cdd3cdfa013899eb 100644 (file)
@@ -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: