Commit e667bd7a authored by wy65701436's avatar wy65701436
Browse files

add version file

parent 5baf565c
Showing with 3 additions and 2 deletions
+3 -2
VERSION 0 → 100644
dev
\ No newline at end of file
......@@ -116,7 +116,7 @@ func (sia *SystemInfoAPI) GetGeneralInfo() {
registryURL = l[0]
}
_, caStatErr := os.Stat(defaultRootCert)
harbor_version := sia.getVersion()
harborVersion := sia.getVersion()
info := GeneralInfo{
AdmiralEndpoint: cfg[common.AdmiralEndpoint].(string),
WithAdmiral: config.WithAdmiral(),
......@@ -126,7 +126,7 @@ func (sia *SystemInfoAPI) GetGeneralInfo() {
SelfRegistration: cfg[common.SelfRegistration].(bool),
RegistryURL: registryURL,
HasCARoot: caStatErr == nil,
HarborVersion: harbor_version,
HarborVersion: harborVersion,
}
sia.Data["json"] = info
sia.ServeJSON()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment