Skip to content

Commit afeb969

Browse files
committed
MAJOR: Ensure that first socket in runtime api list has admin level enabled
1 parent 29a6198 commit afeb969

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

hug/startup/startup.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ func StructuredFromFile(hugConfig hugconfig.HUGConfig) (structured.Structured, e
9999
}, global.RuntimeAPIs...)
100100
}
101101
}
102+
// enforce first socket has level admin
103+
global.RuntimeAPIs[0].Level = "admin"
104+
102105
version, err := confClient.GetVersion("")
103106
if err != nil {
104107
return structured.Structured{}, err

0 commit comments

Comments
 (0)