Skip to content

Commit

Permalink
MotoServer - deprecate server-argument (#5891)
Browse files Browse the repository at this point in the history
  • Loading branch information
bblommers authored Feb 2, 2023
1 parent 985bf4f commit 4ed8b93
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions moto/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import os
import signal
import sys
import warnings

from werkzeug.serving import run_simple

from moto.moto_server.werkzeug_app import (
Expand Down Expand Up @@ -70,6 +72,11 @@ def main(argv=None):
except Exception:
pass # ignore "ValueError: signal only works in main thread"

if args.service:
warnings.warn(
f"The service-argument ({args.service}) is considered deprecated, and will be deprecated in a future release. Please let us know if you have any questions: https://github.com/getmoto/moto/issues"
)

# Wrap the main application
main_app = DomainDispatcherApplication(create_backend_app, service=args.service)
main_app.debug = True
Expand Down

0 comments on commit 4ed8b93

Please sign in to comment.