Merge "Using sys.exit(main()) instead of main()"

This commit is contained in:
Jenkins 2016-09-26 09:35:12 +00:00 committed by Gerrit Code Review
commit 2abeeb7353
5 changed files with 12 additions and 5 deletions

View File

@ -247,4 +247,4 @@ def main():
if __name__ == '__main__':
main()
sys.exit(main())

View File

@ -21,6 +21,7 @@ from alembic import util as alembic_u
from oslo_config import cfg
from oslo_utils import importutils
import six
import sys
from mistral.services import action_manager
from mistral.services import workflows
@ -129,4 +130,4 @@ def main():
CONF.command.func(config, CONF.command.name)
if __name__ == '__main__':
main()
sys.exit(main())

View File

@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import sys
from mistral.engine.rpc_backend.kombu import kombu_client
@ -39,4 +41,4 @@ def main():
if __name__ == '__main__':
main()
sys.exit(main())

View File

@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import sys
from mistral.engine.rpc_backend.kombu import kombu_server
@ -48,4 +50,4 @@ def main():
if __name__ == '__main__':
main()
sys.exit(main())

View File

@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import sys
import keystonemiddleware.opts as keystonemw_opts
from oslo_config import cfg
from oslo_log import log as logging
@ -49,4 +51,4 @@ def main():
if __name__ == '__main__':
main()
sys.exit(main())