Commit 01bec5f0 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'sh-handle-nil-geo-current-node' into 'master'

Handle nil GeoNode to prevent spec failures

See merge request !2124
parents d14fff92 e07d48c7
...@@ -8,7 +8,7 @@ end ...@@ -8,7 +8,7 @@ end
begin begin
# Avoid using the database if this is run in a Rake task # Avoid using the database if this is run in a Rake task
if Gitlab::Geo.primary_role_enabled? if Gitlab::Geo.primary_role_enabled?
Gitlab::Geo.current_node.update_clone_url! Gitlab::Geo.current_node&.update_clone_url!
end end
rescue => e rescue => e
warn "WARNING: Unable to check/update clone_url_prefix for Geo: #{e}" warn "WARNING: Unable to check/update clone_url_prefix for Geo: #{e}"
......
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