]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-daemon: fix traceback during `ls` command 31439/head
authorMichael Fritch <mfritch@suse.com>
Wed, 6 Nov 2019 14:00:26 +0000 (07:00 -0700)
committerMichael Fritch <mfritch@suse.com>
Wed, 6 Nov 2019 15:19:47 +0000 (08:19 -0700)
fixup for 3a1ac3ff6ac2ef6e3e8c361c0c55562b732b9aac

Signed-off-by: Michael Fritch <mfritch@suse.com>
src/ceph-daemon

index c77f0554de3ec585b5835532a07845bac17396a2..04275a9907e747e5b56ef2a2a9109d4beebc49be 100755 (executable)
@@ -1297,11 +1297,11 @@ def command_unit():
 ##################################
 
 def command_ls():
-    host_version = None
     ls = list_daemons()
     print(json.dumps(ls, indent=4))
 
 def list_daemons():
+    host_version = None
     ls = []
 
     # /var/lib/ceph