]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: fix UnboundLocalError: `container_path` 36265/head
authorSebastian Wagner <sebastian.wagner@suse.com>
Mon, 20 Jul 2020 11:51:14 +0000 (13:51 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Thu, 23 Jul 2020 13:20:10 +0000 (15:20 +0200)
Fixes: https://tracker.ceph.com/issues/46098
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit 8532f5331111e2fd5a75df3e19ffb7d6b74c8498)

src/cephadm/cephadm

index 2d2635d3c096a11b1473e21ccc25965ffaa1f850..ab27877c3433796acf9afa1ffadbfbf89f13069f 100755 (executable)
@@ -3999,6 +3999,8 @@ def check_time_sync(enabler=None):
 
 def command_check_host():
     # type: () -> None
+    global container_path
+
     errors = []
     commands = ['systemctl', 'lvcreate']