mirror of
https://github.com/zrepl/zrepl.git
synced 2025-08-15 01:22:26 +02:00
pruning: fix YAML representation of PruneKeepRegex
This commit is contained in:
@ -218,7 +218,7 @@ type PruneKeepLastN struct {
|
||||
|
||||
type PruneKeepRegex struct { // FIXME rename to KeepRegex
|
||||
Type string `yaml:"type"`
|
||||
Regex string `yaml:"prefix"`
|
||||
Regex string `yaml:"regex"`
|
||||
}
|
||||
|
||||
type LoggingOutletEnum struct {
|
||||
@ -341,7 +341,7 @@ func (t *PruningEnum) UnmarshalYAML(u func(interface{}, bool) error) (err error)
|
||||
"not_replicated": &PruneKeepNotReplicated{},
|
||||
"last_n": &PruneKeepLastN{},
|
||||
"grid": &PruneGrid{},
|
||||
"prefix": &PruneKeepRegex{},
|
||||
"regex": &PruneKeepRegex{},
|
||||
})
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user