[why] When update result_root the access_key need update too.
Signed-off-by: Cao Xueliang caoxl78320@163.com --- src/lib/job.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/job.cr b/src/lib/job.cr index c6fb0fd..8f5dd36 100644 --- a/src/lib/job.cr +++ b/src/lib/job.cr @@ -191,7 +191,7 @@ class Job end
private def set_access_key - self["access_key"] = "#{Random::Secure.hex(10)}-#{id}" unless @hash["access_key"]? + self["access_key"] = "#{Random::Secure.hex(10)}-#{id}" self["access_key_file"] = File.join("/srv/", "#{result_root}", ".#{access_key}") end