reaonly 대신 tag로 교체
This commit is contained in:
@ -148,10 +148,12 @@ func gatherDeployedPrograms(storageRoot, name string) []*protos.VersionAndArgs {
|
||||
for _, ver := range vers {
|
||||
if ver.IsDir() {
|
||||
args := lastExecutionArgs(path.Join(targetPath, ver.Name()))
|
||||
tag, _ := os.ReadFile(path.Join(targetPath, ver.Name(), "@tags"))
|
||||
|
||||
rawvers = append(rawvers, &protos.VersionAndArgs{
|
||||
Version: ver.Name(),
|
||||
Args: args,
|
||||
Readonly: false,
|
||||
Version: ver.Name(),
|
||||
Args: args,
|
||||
Tag: string(tag),
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -188,7 +190,7 @@ func (hc *houstonClient) makeOperationQueryRequest() *protos.OperationQueryReque
|
||||
deploys = append(deploys, &protos.DeployedVersions{
|
||||
Name: selfname,
|
||||
Versions: []*protos.VersionAndArgs{
|
||||
{Version: hc.version, Args: selfargs, Readonly: true},
|
||||
{Version: hc.version, Args: selfargs, Tag: "#readonly"},
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user