github-actions[bot] commented on issue #7396:
URL: 
https://github.com/apache/dolphinscheduler/issues/7396#issuecomment-993207840


   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
           /**
            * if the tenant code is modified, the original resource needs to be 
copied to the new tenant.
            */
           if (!tenant.getTenantCode().equals(tenantCode)) {
               if (checkTenantExists(tenantCode)) { 
**********************此处判断条件有误**********************
                   // if hdfs startup
                   省略。。。
               } else {
                   putMsg(result, Status.OS_TENANT_CODE_HAS_ALREADY_EXISTS);
                   return result;
               }
           }
   
   ### What you expected to happen
   
           /**
            * if the tenant code is modified, the original resource needs to be 
copied to the new tenant.
            */
           if (!tenant.getTenantCode().equals(tenantCode)) {
               if (!checkTenantExists(tenantCode)) { 
**********************此处判断条件改为不存在时复制资源**********************
                   // if hdfs startup
                   省略。。。
               } else {
                   putMsg(result, Status.OS_TENANT_CODE_HAS_ALREADY_EXISTS);
                   return result;
               }
           }
   
   ### How to reproduce
   
   修改一个已存在的租户名称,且新的租户名称没有与其他租户名称重复,提交时会提示 “操作系统租户已存在”
   
   版本号:2.0.1-release
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   dev
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)


-- 
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