Allow restore commit logs action in the crash environment

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=171042730
This commit is contained in:
bbilbo 2017-10-04 12:03:39 -07:00 committed by jianglai
parent 0b5b16e97c
commit 3584bbde53

View file

@ -87,8 +87,9 @@ public class RestoreCommitLogsAction implements Runnable {
public void run() { public void run() {
checkArgument( // safety checkArgument( // safety
RegistryEnvironment.get() == RegistryEnvironment.ALPHA RegistryEnvironment.get() == RegistryEnvironment.ALPHA
|| RegistryEnvironment.get() == RegistryEnvironment.CRASH
|| RegistryEnvironment.get() == RegistryEnvironment.UNITTEST, || RegistryEnvironment.get() == RegistryEnvironment.UNITTEST,
"DO NOT RUN ANYWHERE ELSE EXCEPT ALPHA OR TESTS."); "DO NOT RUN ANYWHERE ELSE EXCEPT ALPHA, CRASH OR TESTS.");
if (dryRun) { if (dryRun) {
logger.info("Running in dryRun mode"); logger.info("Running in dryRun mode");
} }