Malahal has uploaded this change for review.

View Change

Fix ganesha_stats exceptions while the daemon is going down

The classes RetrieveExportStats and RetrieveClientStats get ganesha
daemon dbus python proxy object under try/except block but fetching the
actual dbus method and its invocation itself is done without any
exception handling.

It is better to handle exceptions in scripts rather than in class
definitions, so moved exception handling from class definitions to
ganesha_stats script in addition to expanding it to cover dbus method
invocation as was well.

ganesha_stats script gets dbus interface object

Change-Id: I5dbde198479922758dc0fab85a0a9a3b41fb925d
Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
---
M src/scripts/ganeshactl/Ganesha/glib_dbus_stats.py
M src/scripts/ganeshactl/ganesha_stats.py
2 files changed, 51 insertions(+), 56 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/84/482784/1

To view, visit change 482784. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I5dbde198479922758dc0fab85a0a9a3b41fb925d
Gerrit-Change-Number: 482784
Gerrit-PatchSet: 1
Gerrit-Owner: Malahal <malahal@gmail.com>
Gerrit-MessageType: newchange