Skip to content

Commit 82068d6

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 94e05b2 commit 82068d6

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
@@ -138,11 +138,10 @@ def main():
138138
"--service",
139139
type=service_type_converter,
140140
choices=list(Service),
141-
default=Service.Core,
141+
required=True,
142142
metavar="SERVICE",
143143
help="Service type to operate on; determines configmap and pod names. One of: "
144-
+ ", ".join(str(service) for service in Service)
145-
+ " (default: Core)",
144+
+ ", ".join(str(service) for service in Service),
146145
)
147146

148147
args_builder.add_argument(

0 commit comments

Comments
 (0)