Check NDN security in Minindn class before printing related info.
refs: #5125
Change-Id: I6f8c154dcce0dd1285f26a244945aff0041f5d11
diff --git a/minindn/minindn.py b/minindn/minindn.py
index 9a94407..eaad17e 100644
--- a/minindn/minindn.py
+++ b/minindn/minindn.py
@@ -99,7 +99,8 @@
Minindn.ndnSecurityDisabled = '/dummy/KEY/-%9C%28r%B8%AA%3B%60' in \
check_output('ndnsec-get-default -k'.split()). \
decode('utf-8').split('\n')
- info('Dummy key chain patch is installed in ndn-cxx. Security will be disabled.\n')
+ if Minindn.ndnSecurityDisabled:
+ info('Dummy key chain patch is installed in ndn-cxx. Security will be disabled.\n')
except:
pass