1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 06:40:31 +00:00

treat 404 error on datasource as unrecoverable

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-03-01 15:52:15 +10:00
parent 391082fa50
commit 78051c2814
2 changed files with 6 additions and 0 deletions

View File

@@ -45,6 +45,11 @@ func (f *RemoteFile) String() string {
}
func (f *RemoteFile) AvailabilityChanges() bool {
if f.lastError != nil {
if _, ok := f.lastError.(pkg.ErrNotFound); ok {
return false
}
}
return true
}