Commit c0c02fc9 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Don't update the checksum of a host if its download fails

parent ba7936de
Pipeline #7395 passed with stage
in 4 minutes and 23 seconds
......@@ -233,6 +233,7 @@ class RuleImportService : IntentService("RuleImportService") {
} catch (ex: java.lang.Exception) {
ex.printStackTrace()
log("Downloading resource of ${it.name} failed ($ex)")
newChecksums.remove(it)
} finally {
response?.body?.close()
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment