mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-22 00:13:52 +01:00
[#381] zfs: ListFilesystemVersions: make list filesystems version invocation deterministic
fixes #381 ref #379
This commit is contained in:
parent
0a2dea05a9
commit
c420f3c909
@ -4,6 +4,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
@ -40,6 +41,7 @@ func (s VersionTypeSet) zfsListTFlagRepr() string {
|
|||||||
for t := range s {
|
for t := range s {
|
||||||
types = append(types, t.String())
|
types = append(types, t.String())
|
||||||
}
|
}
|
||||||
|
sort.StringSlice(types).Sort()
|
||||||
return strings.Join(types, ",")
|
return strings.Join(types, ",")
|
||||||
}
|
}
|
||||||
func (s VersionTypeSet) String() string { return s.zfsListTFlagRepr() }
|
func (s VersionTypeSet) String() string { return s.zfsListTFlagRepr() }
|
||||||
|
Loading…
Reference in New Issue
Block a user