[#299] envconst: queryable report of resolved variables + integration inot zrepl status --raw

This commit is contained in:
Christian Schwarz
2020-06-07 12:24:16 +02:00
parent 69a718c14b
commit fb5ae0ecca
4 changed files with 101 additions and 45 deletions
+7 -1
View File
@@ -120,7 +120,13 @@ func (j *controlJob) Run(ctx context.Context) {
jsonResponder{log, func() (interface{}, error) {
jobs := j.jobs.status()
globalZFS := zfscmd.GetReport()
s := Status{Jobs: jobs, Global: GlobalStatus{ZFSCmds: globalZFS}}
envconstReport := envconst.GetReport()
s := Status{
Jobs: jobs,
Global: GlobalStatus{
ZFSCmds: globalZFS,
Envconst: envconstReport,
}}
return s, nil
}})