]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
new exception to indicate a missing executable
authorAlfredo Deza <alfredo.deza@inktank.com>
Tue, 8 Jul 2014 14:00:30 +0000 (10:00 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Tue, 8 Jul 2014 14:54:34 +0000 (10:54 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/exc.py

index e4ccd4c56c49fe5b0b3a1986ebbd2096c5af66fe..fdb1db6ee10a2b6ff15f00d49b1d4dd99f73ba09 100644 (file)
@@ -62,6 +62,22 @@ class UnsupportedPlatform(DeployError):
         )
 
 
+class ExecutableNotFound(DeployError):
+    """
+    Could not locate executable
+    """
+    def __init__(self, executable, host):
+        self.executable = executable
+        self.host = host
+
+    def __str__(self):
+        return "{doc} '{executable}' make sure it is installed and available on {host}".format(
+            doc=self.__doc__.strip(),
+            executable=self.executable,
+            host=self.host,
+        )
+
+
 class MissingPackageError(DeployError):
     """
     A required package or command is missing