Do not attempt to use the DRBD secret in gnt-instance info
authorHrvoje Ribicic <riba@google.com>
Fri, 21 Aug 2015 19:46:18 +0000 (19:46 +0000)
committerHrvoje Ribicic <riba@google.com>
Mon, 30 Nov 2015 14:26:04 +0000 (15:26 +0100)
... so just redact what is output.

Signed-off-by: Hrvoje Ribicic <riba@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>

lib/client/gnt_instance.py

index 52d5bd1..50d0655 100644 (file)
@@ -931,7 +931,6 @@ def _FormatDiskDetails(dev_type, dev, roman):
                  compat.TryToRoman(drbd_info["secondary_minor"],
                                    convert=roman))),
       ("port", str(compat.TryToRoman(drbd_info["port"], convert=roman))),
-      ("auth key", str(drbd_info["secret"])),
       ]
   elif dev_type == constants.DT_PLAIN:
     vg_name, lv_name = dev["logical_id"]