From: Varsha Rao Date: Mon, 24 Feb 2020 13:10:30 +0000 (+0530) Subject: ceph.in: Fix name retval is not defined error X-Git-Tag: v15.1.1~255^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1dd27398d4e13e9523b5590a251bb94cdc934ab9;p=ceph.git ceph.in: Fix name retval is not defined error In case of exceptions other than KeyboardInterrupt, retval is not defined. Move exit call outside the finally block. Fixes: https://tracker.ceph.com/issues/44275 Signed-off-by: Varsha Rao --- diff --git a/src/ceph.in b/src/ceph.in index 757551754531..7533fed5f71b 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -1276,4 +1276,4 @@ if __name__ == '__main__': # shutdown explicitly; Rados() does not if cluster_handle: run_in_thread(cluster_handle.shutdown) - sys.exit(retval) + sys.exit(retval)