]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
use the new helper in 'which_service'
authorAlfredo Deza <alfredo.deza@inktank.com>
Mon, 25 Nov 2013 17:36:00 +0000 (11:36 -0600)
committerAlfredo Deza <alfredo.deza@inktank.com>
Mon, 25 Nov 2013 17:36:00 +0000 (11:36 -0600)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/hosts/remotes.py

index 0c74a4fa22ca61e686ff75fa0dff2cc79728afd0..5317f34cc4b11514649cb2579464a2e7984aa857 100644 (file)
@@ -143,10 +143,9 @@ def shortname():
 
 def which_service():
     """ locating the `service` executable... """
-    locations = ['/sbin/service', '/usr/sbin/service']
-    for location in locations:
-        if os.path.exists(location):
-            return location
+    # XXX This should get deprecated at some point. For now
+    # it just bypasses and uses the new helper.
+    return which('service')
 
 
 def which(executable):