xijinyu has uploaded this change for review.
ganesha_mgr: Fix some "IndexError: list index out of range" error.
[root@localhost ~]# ganesha_mgr getall
Traceback (most recent call last):
File "/usr/bin/ganesha_mgr", line 497, in <module>
if sys.argv[2] == "logs":
IndexError: list index out of range
[root@localhost ~]# ganesha_mgr get
Traceback (most recent call last):
File "/usr/bin/ganesha_mgr", line 485, in <module>
if sys.argv[2] == "log":
IndexError: list index out of range
[root@localhost ~]# ganesha_mgr display
Traceback (most recent call last):
File "/usr/bin/ganesha_mgr", line 417, in <module>
if sys.argv[2] == "export":
IndexError: list index out of range
......
Signed-off-by: Xi Jinyu <xijinyu0811@163.com>
Change-Id: Ib410e526b69247dd99c98665d63378f3c3b1b3ae
---
M src/scripts/ganeshactl/ganesha_mgr.py
1 file changed, 56 insertions(+), 21 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/69/529469/1
To view, visit change 529469. To unsubscribe, or for help writing mail filters, visit settings.