]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client ownership info validation corrected
authorBabu Shanmugam <anbu@enovance.com>
Tue, 11 Feb 2014 05:52:31 +0000 (05:52 +0000)
committerBabu Shanmugam <anbu@enovance.com>
Tue, 11 Feb 2014 05:52:31 +0000 (05:52 +0000)
client/ceph-brag

index 2829a6b6d75523be1257cd8ab900120f45ba162a..c6b8a9fddf4c18238fae454c99e13f5933e2283e 100755 (executable)
@@ -225,9 +225,10 @@ def output_json():
   out['sysinfo'] = get_sysinfo(num_osds)
 
   owner = get_ownership_info()
-  if owner is not None and 'url' in owner:
-    url = owner.pop('url')
+  if owner is not None:
     out['ownership'] = owner
+    if 'url' in owner:
+      url = owner.pop('url')
 
   return json.dumps(out, indent=2, separators=(',', ': ')), url