]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: black format daemons/ceph.py
authorJohn Mulligan <jmulligan@redhat.com>
Sat, 9 Mar 2024 16:37:14 +0000 (11:37 -0500)
committerAdam King <adking@redhat.com>
Tue, 19 Mar 2024 17:47:53 +0000 (13:47 -0400)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 3cd5c237837aaa1841f2675cfe08886606b4dc62)

Conflicts:
src/cephadm/cephadmlib/daemons/ceph.py

src/cephadm/cephadmlib/daemons/ceph.py

index 0afb8f734af5fd3003e110dd7ec6a0ea3ead1a71..a835cb477c12b4b191f66890534adccf4acd95c6 100644 (file)
@@ -329,7 +329,9 @@ class CephExporter(ContainerDaemonForm):
 
     def validate(self) -> None:
         if not os.path.isdir(self.sock_dir):
-            raise Error(f'Directory does not exist. Got: {self.sock_dir}')
+            raise Error(
+                f'Desired sock dir for ceph-exporter is not directory: {self.sock_dir}'
+            )
 
     def container(self, ctx: CephadmContext) -> CephContainer:
         ctr = daemon_to_container(ctx, self)