mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-02-03 05:03:43 +08:00
Format the coding style across the codebase using "black" and manual tweaks
The main benefit of this commit is that the use of double quotes is now consistent.
This commit is contained in:
@@ -2,16 +2,8 @@ config = dict(
|
||||
logging=dict(
|
||||
loggers=dict(
|
||||
# Quiet this guy down...
|
||||
requests={
|
||||
"level": "WARNING",
|
||||
"propagate": True,
|
||||
"handlers": ["console"],
|
||||
},
|
||||
module_build_service={
|
||||
"level": "INFO",
|
||||
"propagate": True,
|
||||
"handlers": ["console"],
|
||||
},
|
||||
),
|
||||
),
|
||||
requests={"level": "WARNING", "propagate": True, "handlers": ["console"]},
|
||||
module_build_service={"level": "INFO", "propagate": True, "handlers": ["console"]},
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
@@ -1,4 +1 @@
|
||||
config = {
|
||||
'mbsconsumer': True,
|
||||
'mbspoller': True,
|
||||
}
|
||||
config = {"mbsconsumer": True, "mbspoller": True}
|
||||
|
||||
@@ -3,10 +3,8 @@ import os
|
||||
config = {
|
||||
# Just for dev.
|
||||
"validate_signatures": False,
|
||||
|
||||
# Talk to the relay, so things also make it to composer.stg in our dev env
|
||||
"active": True,
|
||||
|
||||
# Since we're in active mode, we don't need to declare any of our own
|
||||
# passive endpoints. This placeholder value needs to be here for the tests
|
||||
# to pass in Jenkins, though. \o/
|
||||
@@ -14,10 +12,9 @@ config = {
|
||||
"fedora-infrastructure": [
|
||||
# Just listen to staging for now, not to production (spam!)
|
||||
# "tcp://hub.fedoraproject.org:9940",
|
||||
"tcp://stg.fedoraproject.org:9940",
|
||||
],
|
||||
"tcp://stg.fedoraproject.org:9940"
|
||||
]
|
||||
},
|
||||
|
||||
# Start of code signing configuration
|
||||
# 'sign_messages': True,
|
||||
# 'validate_signatures': True,
|
||||
@@ -37,12 +34,11 @@ config = {
|
||||
}
|
||||
|
||||
# developer's instance
|
||||
if 'MODULE_BUILD_SERVICE_DEVELOPER_ENV' in os.environ and \
|
||||
os.environ['MODULE_BUILD_SERVICE_DEVELOPER_ENV'].lower() in (
|
||||
'1', 'on', 'true', 'y', 'yes'):
|
||||
config['endpoints']['relay_outbound'] = ["tcp://fedmsg-relay:2001"]
|
||||
config['relay_inbound'] = ["tcp://fedmsg-relay:2003"]
|
||||
true_options = ("1", "on", "true", "y", "yes")
|
||||
if os.environ.get("MODULE_BUILD_SERVICE_DEVELOPER_ENV", "").lower() in true_options:
|
||||
config["endpoints"]["relay_outbound"] = ["tcp://fedmsg-relay:2001"]
|
||||
config["relay_inbound"] = ["tcp://fedmsg-relay:2003"]
|
||||
else:
|
||||
# These configuration values are reasonable for most other configurations.
|
||||
config['endpoints']['relay_outbound'] = ["tcp://127.0.0.1:4001"]
|
||||
config['relay_inbound'] = ["tcp://127.0.0.1:2003"]
|
||||
config["endpoints"]["relay_outbound"] = ["tcp://127.0.0.1:4001"]
|
||||
config["relay_inbound"] = ["tcp://127.0.0.1:2003"]
|
||||
|
||||
Reference in New Issue
Block a user