]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Query arch in lock_many()
authorZack Cerza <zack.cerza@inktank.com>
Wed, 1 Oct 2014 23:14:59 +0000 (17:14 -0600)
committerZack Cerza <zack.cerza@inktank.com>
Wed, 1 Oct 2014 23:14:59 +0000 (17:14 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/lock.py

index 5f14ebacd1339cebfcc5d8a47367f518b6f8c098..cd101584579679187339c073449b37371123357d 100644 (file)
@@ -301,7 +301,7 @@ def main(ctx):
 
 
 def lock_many(ctx, num, machine_type, user=None, description=None,
-              os_type=None, os_version=None):
+              os_type=None, os_version=None, arch=None):
     if user is None:
         user = misc.get_user()
 
@@ -339,6 +339,8 @@ def lock_many(ctx, num, machine_type, user=None, description=None,
                 data['os_type'] = os_type
             if os_version:
                 data['os_version'] = os_version
+        if arch:
+            data['arch'] = arch
         log.debug("lock_many request: %s", repr(data))
         response = requests.post(
             uri,