summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2018-08-14 22:48:56 +0100
committerNick Thomas <nick@gitlab.com>2018-08-14 22:48:56 +0100
commit1666dfdae141cceab35cc30baa253e2676b5ed65 (patch)
tree19aeec667ec591c02d498910fbe1526d19770643 /lib
parent02457041814fe4497b3df00e0e45edbee107c823 (diff)
parent5287eee65e7f29e8d5296eb3ef24a06a9a60b3f1 (diff)
downloadgitlab-shell-1666dfdae141cceab35cc30baa253e2676b5ed65.tar.gz
Merge remote-tracking branch 'upstream/8-1-stable' into 148-merge-8-1-1-to-master
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab_shell.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab_shell.rb b/lib/gitlab_shell.rb
index 2057ea9..11494e0 100644
--- a/lib/gitlab_shell.rb
+++ b/lib/gitlab_shell.rb
@@ -210,7 +210,7 @@ class GitlabShell # rubocop:disable Metrics/ClassLength
begin
if defined?(@who)
@user = api.discover(@who)
- @gl_id = "user-#{@user['id']}"
+ @gl_id = "user-#{@user['id']}" if @user && @user.key?('id')
else
@user = api.discover(@gl_id)
end