summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn Cai <jcai@gitlab.com>2019-08-19 15:14:15 -0700
committerJohn Cai <jcai@gitlab.com>2019-08-23 08:42:00 -0700
commitebbd2aeb5f56bc2cacc5d95d41da370d8c29069d (patch)
tree8c73f743a7ae0427629922f3417c6e9a8ba7c665 /lib
parentfc9ad598afac70bd6c8816f6ed9e8a59529598e5 (diff)
downloadgitlab-ce-ebbd2aeb5f56bc2cacc5d95d41da370d8c29069d.tar.gz
Handle when server info doesn't have the storage in question
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/gitaly_client.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/gitaly_client.rb b/lib/gitlab/gitaly_client.rb
index e6cbfb00f60..201db9fec26 100644
--- a/lib/gitlab/gitaly_client.rb
+++ b/lib/gitlab/gitaly_client.rb
@@ -406,7 +406,8 @@ module Gitlab
def self.filesystem_id(storage)
response = Gitlab::GitalyClient::ServerService.new(storage).info
storage_status = response.storage_statuses.find { |status| status.storage_name == storage }
- storage_status.filesystem_id
+
+ storage_status&.filesystem_id
end
def self.filesystem_id_from_disk(storage)