]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Use os_type and os_version in lock_machines()
authorZack Cerza <zack.cerza@inktank.com>
Tue, 30 Sep 2014 15:13:46 +0000 (09:13 -0600)
committerZack Cerza <zack.cerza@inktank.com>
Tue, 30 Sep 2014 16:41:29 +0000 (10:41 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/task/internal.py

index 546821ca19c07e5ed5df59a1a6b0ddb262280643..27d2b8b1d6c22a72eecb60510b014bd90903a31c 100644 (file)
@@ -63,6 +63,8 @@ def lock_machines(ctx, config):
     new machines.  This is not called if the one has teuthology-locked
     machines and placed those keys in the Targets section of a yaml file.
     """
+    os_type = ctx.config.get('os_type')
+    os_version = ctx.config.get('os_version')
     log.info('Locking machines...')
     assert isinstance(config[0], int), 'config[0] must be an integer'
     machine_type = config[1]
@@ -96,7 +98,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)
+                                      ctx.archive, os_type, os_version)
         if not newly_locked and not isinstance(newly_locked, list):
             raise RuntimeError('Invalid parameters specified')
         if len(newly_locked) == how_many: