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: I6457b1b861d2f9fdadce788ac6b719f46c7f2af3
Partial-Bug: #1631503
(cherry picked from commit d1676d38e41bd1ec4f6468d47fdd7d1f076b6f43)
Reviewed: https:/ /review. openstack. org/387715 /git.openstack. org/cgit/ openstack/ kolla/commit/ ?id=ff9ffb8ab5c a38873f141a52f3 47e5116eb0bb06
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit ff9ffb8ab5ca388 73f141a52f347e5 116eb0bb06
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 c4f6468d47fdd7d 1f076b6f43)
Partial-Bug: #1631503
(cherry picked from commit d1676d38e41bd1e