]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
Use teuthology.misc.get_distro and teuthology.misc.get_distro_
authorAndrew Schoen <aschoen@redhat.com>
Wed, 17 Dec 2014 15:20:19 +0000 (09:20 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 18 Dec 2014 16:45:51 +0000 (10:45 -0600)
commit3a502dec21f7f440a6b3494fd34ff4d6aa02d5eb
treeb0238dff69aa4ab324447983134cb3850a6353af
parent09343077c86334ab68dc9b43858489ae7c735d74
Use teuthology.misc.get_distro and teuthology.misc.get_distro_
version in the internal.lock_machines task.

When the internal task wasn't using get_distro to retrieve os_type it
could set os_type to None, causing the lock to fail. This happened when
there was not an os_type defined in the config or a --os-type flag given.
Now, os_type will be properly defaulted to ubuntu when trying to lock
bare metal machines.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
teuthology/misc.py
teuthology/provision.py
teuthology/task/internal.py