Skip to content

Commit 64e946b

Browse files
scripts: make --service a required argument
Drop the implicit Service.Core default for --service in update_config_and_restart_nodes and require it explicitly, so the targeted service is always a conscious choice rather than silently defaulting to Core. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent ebf6d8b commit 64e946b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

scripts/prod/update_config_and_restart_nodes.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,10 @@ def main():
137137
"-j",
138138
"--service",
139139
type=service_type_converter,
140-
default=Service.Core,
140+
required=True,
141141
metavar="SERVICE",
142142
help="Service type to operate on; determines configmap and pod names. One of: "
143-
+ ", ".join(str(service) for service in Service)
144-
+ " (default: Core)",
143+
+ ", ".join(str(service) for service in Service),
145144
)
146145

147146
args_builder.add_argument(

0 commit comments

Comments
 (0)