This commit is contained in:
parent
5813fe56bf
commit
917438471e
@ -213,7 +213,7 @@ func (glo ResticGlobalOpts) ToArgs() (args []string) {
|
||||
args = maybeAddArgBool(args, "--no-lock", glo.NoLock)
|
||||
|
||||
for key, value := range glo.Options {
|
||||
args = append(args, fmt.Sprintf("--option %s='%s'", key, value))
|
||||
args = append(args, "--option", fmt.Sprintf("%s='%s'", key, value))
|
||||
}
|
||||
|
||||
return args
|
||||
|
@ -50,7 +50,7 @@ func TestGlobalOptions(t *testing.T) {
|
||||
"--cleanup-cache",
|
||||
"--no-cache",
|
||||
"--no-lock",
|
||||
"--option key='a long value'",
|
||||
"--option", "key='a long value'",
|
||||
}
|
||||
|
||||
AssertEqual(t, "args didn't match", expected, args)
|
||||
@ -213,6 +213,9 @@ func TestResticInterface(t *testing.T) {
|
||||
// nolint:exhaustivestruct
|
||||
GlobalOpts: &main.ResticGlobalOpts{
|
||||
CacheDir: cacheDir,
|
||||
Options: map[string]string{
|
||||
"s3.storage-class": "REDUCED_REDUNDANCY",
|
||||
},
|
||||
},
|
||||
Cwd: dataDir,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user