]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: Fix name retval is not defined error 33516/head
authorVarsha Rao <varao@redhat.com>
Mon, 24 Feb 2020 13:10:30 +0000 (18:40 +0530)
committerVarsha Rao <varao@redhat.com>
Mon, 24 Feb 2020 16:48:08 +0000 (22:18 +0530)
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 <varao@redhat.com>
src/ceph.in

index 757551754531cb4fb45c4435b99c65216bcb9b90..7533fed5f71be7ea2bb06cc73ea76e521b9bf4a0 100755 (executable)
@@ -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)