shishir gowda 4c1c8feee4 TOP: exit status should be non-zero for success
The fault was incorrect loop. An extra iteration was being performed,
and dict_get failed due to non-existant data leading to status being
set to non-zero

Signed-off-by: shishir gowda <shishirng@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>

BUG: 2882 (Make volume top command exit status as zero on success)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2882
2011-05-27 00:19:15 -07:00
..