forked from TrueCloudLab/distribution
updatefrequency should not be saved into duration
When updatefrequency is set and is a string, its value should be saved into updateFrequency, and it shouldn't override duration. Signed-off-by: Oleg Bulatov <oleg@bulatov.me>
This commit is contained in:
parent
677772e08d
commit
f5709b285a
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ func newCloudFrontStorageMiddleware(storageDriver storagedriver.StorageDriver, o
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("invalid updatefrequency: %s", err)
|
return nil, fmt.Errorf("invalid updatefrequency: %s", err)
|
||||||
}
|
}
|
||||||
duration = updateFreq
|
updateFrequency = updateFreq
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue