|
|
@@ -1,6 +1,7 @@
|
|
|
package cn.reghao.devops.mgr.ops.build.model.vo;
|
|
|
|
|
|
import cn.reghao.devops.mgr.ops.build.model.po.RepoAuthConfig;
|
|
|
+import cn.reghao.jutil.jdk.web.result.NotAvailable;
|
|
|
import lombok.Data;
|
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
|
@@ -24,8 +25,8 @@ public class RepoAuthVO {
|
|
|
this.authType = repoAuthConfig.getAuthType();
|
|
|
this.name = repoAuthConfig.getName();
|
|
|
this.type = repoAuthConfig.getType();
|
|
|
- this.username = repoAuthConfig.getUsername();
|
|
|
- this.password = repoAuthConfig.getPassword();
|
|
|
+ this.username = repoAuthConfig.getUsername() == null ? NotAvailable.na.getDesc() : repoAuthConfig.getUsername();
|
|
|
+ this.password = repoAuthConfig.getPassword() == null ? NotAvailable.na.getDesc() : repoAuthConfig.getPassword();
|
|
|
this.useCount = 0;
|
|
|
}
|
|
|
}
|