move sys.exit out of try finally block in set_config.py file
when code exit by using sys.exit in try..catch block, it will skip catch
and run the code in finally. Because SystemExit does not inherit from
Exception.
This patch moves sys.exit out of finally block. Then it won't execute
when script exits by sys.exit
Reviewed: https:/ /review. openstack. org/386478 /git.openstack. org/cgit/ openstack/ kolla/commit/ ?id=d1676d38e41 bd1ec4f6468d47f dd7d1f076b6f43
Committed: https:/
Submitter: Jenkins
Branch: master
commit d1676d38e41bd1e c4f6468d47fdd7d 1f076b6f43
Author: Jeffrey Zhang <email address hidden>
Date: Fri Oct 14 16:44:54 2016 +0800
move sys.exit out of try finally block in set_config.py file
when code exit by using sys.exit in try..catch block, it will skip catch
and run the code in finally. Because SystemExit does not inherit from
Exception.
This patch moves sys.exit out of finally block. Then it won't execute
when script exits by sys.exit
Change-Id: I6457b1b861d2f9 fdadce788ac6b71 9f46c7f2af3
Partial-Bug: #1631503