summaryrefslogtreecommitdiff
path: root/lib/gitlab_net.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2017-09-29 14:19:54 +0000
committerDouwe Maan <douwe@gitlab.com>2017-09-29 14:19:54 +0000
commit5ef63d10d93836cc6922445d4755e42d7fb599e5 (patch)
tree86ef8eca7008319f9aec8f3ca314c801bada3d52 /lib/gitlab_net.rb
parent92a9877ba6fc3dc442321a7c7243b8b8a330a02f (diff)
parent2f92f124d1297ea58935f37609b7e2b0709e64d3 (diff)
downloadgitlab-shell-5ef63d10d93836cc6922445d4755e42d7fb599e5.tar.gz
Merge branch 'remote_user' into 'master'
translate gl_username -> REMOTE_USER See merge request gitlab-org/gitlab-shell!158
Diffstat (limited to 'lib/gitlab_net.rb')
-rw-r--r--lib/gitlab_net.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/gitlab_net.rb b/lib/gitlab_net.rb
index de0cc57..34f10c5 100644
--- a/lib/gitlab_net.rb
+++ b/lib/gitlab_net.rb
@@ -40,7 +40,13 @@ class GitlabNet
if resp.code == '200'
GitAccessStatus.create_from_json(resp.body)
else
- GitAccessStatus.new(false, 'API is not accessible', nil, nil, nil)
+ GitAccessStatus.new(false,
+ 'API is not accessible',
+ gl_repository: nil,
+ gl_username: nil,
+ repository_path: nil,
+ gitaly: nil,
+ geo_node: false)
end
end