SbloodyS commented on code in PR #17801:
URL: 
https://github.com/apache/dolphinscheduler/pull/17801#discussion_r2635151637


##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/configuration/ApiConfig.java:
##########
@@ -53,9 +56,16 @@ public boolean supports(Class<?> clazz) {
 
     @Override
     public void validate(Object target, Errors errors) {
+        validatePythonGateway(errors);
         printConfig();
     }
 
+    private void validatePythonGateway(Errors errors) {
+        if (pythonGateway.isEnabled() && 
StringUtils.isNotEmpty(pythonGateway.getAuthToken())) {

Review Comment:
   ```suggestion
           if (pythonGateway.isEnabled() && 
StringUtils.isEmpty(pythonGateway.getAuthToken())) {
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to