mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-22 08:23:50 +01:00
Touchups in job.go
This commit is contained in:
parent
7de3c0a09a
commit
dd11fc96db
@ -39,7 +39,7 @@ type Type string
|
||||
|
||||
const (
|
||||
TypeInternal Type = "internal"
|
||||
TypeSnap = "snap"
|
||||
TypeSnap Type = "snap"
|
||||
TypePush Type = "push"
|
||||
TypeSink Type = "sink"
|
||||
TypePull Type = "pull"
|
||||
@ -86,7 +86,9 @@ func (s *Status) UnmarshalJSON(in []byte) (err error) {
|
||||
}
|
||||
switch s.Type {
|
||||
case TypeSnap:
|
||||
fallthrough
|
||||
var st SnapJobStatus
|
||||
err = json.Unmarshal(jobJSON, &st)
|
||||
s.JobSpecific = &st
|
||||
case TypePull: fallthrough
|
||||
case TypePush:
|
||||
var st ActiveSideStatus
|
||||
|
Loading…
Reference in New Issue
Block a user