]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: use check_call for `ssh-keygen` 34691/head
authorSebastian Wagner <sebastian.wagner@suse.com>
Wed, 22 Apr 2020 14:10:27 +0000 (16:10 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Wed, 22 Apr 2020 14:10:27 +0000 (16:10 +0200)
Mainly to provide any reasonable error

Fixes: https://tracker.ceph.com/issues/44832
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
src/pybind/mgr/cephadm/module.py

index 2a1ff2db6421500a88c169ccc8b63c13f8759a19..130377ecdc57166430000bbb7947e46df24c9700 100644 (file)
@@ -1424,7 +1424,7 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule):
             tmp_dir = TemporaryDirectory()
             path = tmp_dir.name + '/key'
             try:
-                subprocess.call([
+                subprocess.check_call([
                     '/usr/bin/ssh-keygen',
                     '-C', 'ceph-%s' % self._cluster_fsid,
                     '-N', '',