Skip to content

Commit d65115c

Browse files
ruanwenjunSbloodyS
andauthored
Update dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/configuration/ApiConfig.java
Co-authored-by: xiangzihao <[email protected]>
1 parent 0dc58c4 commit d65115c

File tree

1 file changed

+1
-1
lines changed
  • dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/configuration

1 file changed

+1
-1
lines changed

dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/configuration/ApiConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void validate(Object target, Errors errors) {
6161
}
6262

6363
private void validatePythonGateway(Errors errors) {
64-
if (pythonGateway.isEnabled() && StringUtils.isNotEmpty(pythonGateway.getAuthToken())) {
64+
if (pythonGateway.isEnabled() && StringUtils.isEmpty(pythonGateway.getAuthToken())) {
6565
errors.rejectValue("pythonGateway.auth-token", null, "should not be empty when enabled is true");
6666
}
6767
}

0 commit comments

Comments
 (0)