Merge "Using sys.exit(main()) instead of main()"
This commit is contained in:
commit
2abeeb7353
@ -247,4 +247,4 @@ def main():
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
sys.exit(main())
|
||||
|
@ -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())
|
||||
|
@ -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())
|
||||
|
@ -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())
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user