diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2018-08-20 14:38:28 +1000 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2018-09-07 15:37:14 +1000 |
commit | bda0f09c809dc6d989b86ef27d5fe6b08c564e8b (patch) | |
tree | 827520093c740883cc30ec5410cfba7f93a38785 /lib/gitlab_net.rb | |
parent | 4801e2deb6a22d8b7288d4a7473b0c2fad7f38e9 (diff) | |
download | gitlab-shell-bda0f09c809dc6d989b86ef27d5fe6b08c564e8b.tar.gz |
GitAccessStatus initializer sensible defaults
Diffstat (limited to 'lib/gitlab_net.rb')
-rw-r--r-- | lib/gitlab_net.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/gitlab_net.rb b/lib/gitlab_net.rb index 4a8fc5f..080898e 100644 --- a/lib/gitlab_net.rb +++ b/lib/gitlab_net.rb @@ -37,14 +37,7 @@ class GitlabNet # rubocop:disable Metrics/ClassLength when HTTP_SUCCESS, HTTP_UNAUTHORIZED, HTTP_NOT_FOUND GitAccessStatus.create_from_json(resp.body) else - GitAccessStatus.new(false, - 'API is not accessible', - gl_repository: nil, - gl_id: nil, - gl_username: nil, - git_config_options: nil, - gitaly: nil, - git_protocol: nil) + GitAccessStatus.new(false, resp.code, 'API is not accessible') end end |