skmprabhu2(a)gmail.com has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/547461 )
Change subject: ganesha_mgr: show clients failed with KeyError: '9P'
......................................................................
ganesha_mgr: show clients failed with KeyError: '9P'
Suppose if ganesha not compiled with 9P, then ShowClients
dbus method will not return '9P' data. And, accessing '9P'
key in dict will fail with KeyError error.
Modified code to access dict key using get(). The get()
return default value if the key not exists in dict.
Default value is 0(zero).
Change-Id: I4d93eb3a46db1364717e7a52fa26296392a9e9db
Signed-off-by: Prabhu Murugesan <pmurugesan(a)ddn.com>
---
M src/scripts/ganeshactl/Ganesha/ganesha_mgr_utils.py
1 file changed, 34 insertions(+), 16 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/61/547461/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/547461
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I4d93eb3a46db1364717e7a52fa26296392a9e9db
Gerrit-Change-Number: 547461
Gerrit-PatchSet: 1
Gerrit-Owner: skmprabhu2(a)gmail.com
Gerrit-MessageType: newchange