2021-02-03 21:09:17 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-08-19 17:10:41 +00:00
|
|
|
begin
|
|
|
|
Gitlab::Workhorse.secret
|
2021-04-26 12:09:44 +00:00
|
|
|
rescue StandardError
|
2016-08-19 17:10:41 +00:00
|
|
|
Gitlab::Workhorse.write_secret
|
|
|
|
end
|
|
|
|
|
|
|
|
# Try a second time. If it does not work this will raise.
|
|
|
|
Gitlab::Workhorse.secret
|