mirror of
https://github.com/google/nomulus
synced 2026-09-03 06:36:56 +00:00
Update to only include changes to check for production required tags (#2273)
This commit is contained in:
@@ -105,6 +105,12 @@ public class ConfigureTldCommand extends MutatingCommand {
|
||||
|
||||
@Override
|
||||
protected void init() throws Exception {
|
||||
if (RegistryToolEnvironment.get().equals(RegistryToolEnvironment.PRODUCTION)) {
|
||||
checkArgument(
|
||||
buildEnv || breakGlass != null,
|
||||
"Either the --break_glass or --build_environment flag must be used when"
|
||||
+ " running the configure_tld command on Production");
|
||||
}
|
||||
String name = convertFilePathToName(inputFile);
|
||||
Map<String, Object> tldData = new Yaml().load(Files.newBufferedReader(inputFile));
|
||||
checkName(name, tldData);
|
||||
|
||||
Reference in New Issue
Block a user