]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Use provision.downburst_executable()
authorZack Cerza <zack@redhat.com>
Fri, 27 Feb 2015 20:40:07 +0000 (13:40 -0700)
committerZack Cerza <zack@redhat.com>
Thu, 9 Apr 2015 16:31:55 +0000 (10:31 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/lock.py

index 49ed4863f0abf0e627ae6f3f32248e720a57d9fa..4aa220020a816bbda79b14f1eddace57215de521 100644 (file)
@@ -8,7 +8,6 @@ import collections
 import os
 import requests
 import urllib
-from distutils.spawn import find_executable
 
 import teuthology
 from . import misc
@@ -47,7 +46,7 @@ def get_distro_from_downburst():
                                  u'14.04(trusty)', u'utopic(utopic)'],
                      u'sles': [u'11-sp2'],
                      u'debian': [u'6.0', u'7.0']}
-    executable_cmd = find_executable('downburst')
+    executable_cmd = provision.downburst_executable()
     if not executable_cmd:
         log.warn("Downburst not found!")
         log.info('Using default values for supported os_type/os_version')