From: Alfredo Deza Date: Tue, 8 Jul 2014 14:00:30 +0000 (-0400) Subject: new exception to indicate a missing executable X-Git-Tag: v1.5.8~5^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=58ee320c25a0c03d3f33e30879dd3f3938136900;p=ceph-deploy.git new exception to indicate a missing executable Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/exc.py b/ceph_deploy/exc.py index e4ccd4c..fdb1db6 100644 --- a/ceph_deploy/exc.py +++ b/ceph_deploy/exc.py @@ -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