summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMarkus Doits <markus.doits@stellenticket.de>2018-11-05 19:18:16 +0100
committerMarkus Doits <markus.doits@stellenticket.de>2018-11-07 13:05:27 +0100
commit65e2731f8316d614b9002f5c80f6afbd08925543 (patch)
treec49e9b1d9f1b33290e39f075a5a71ad6f23af576 /app
parent024523a3b5385c5ee678c695de5a1aed6f537441 (diff)
downloadgitlab-ce-65e2731f8316d614b9002f5c80f6afbd08925543.tar.gz
fix failure in case of missing options
Diffstat (limited to 'app')
-rw-r--r--app/models/ci/build.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb
index 392cf5bb721..9d6bfbb0db7 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -900,7 +900,7 @@ module Ci
# sure that the format is always correct when accessing the retry options,
# even on old builds.
def normalized_retry
- value = options[:retry]
+ value = options&.dig(:retry)
value.is_a?(Integer) ? { max: value } : value.to_h
end