summaryrefslogtreecommitdiff
path: root/lib/google_api
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-10-05 18:17:21 +0900
committerShinya Maeda <shinya@gitlab.com>2017-10-05 18:17:21 +0900
commit31c89258821b680da18fc02439b1be4471846571 (patch)
treee52e22c8e7ae9848c00d3bef201e9de1a560f304 /lib/google_api
parent6b07aa5ec863706e58f781ee77ad54b54702c88a (diff)
downloadgitlab-ce-31c89258821b680da18fc02439b1be4471846571.tar.gz
spec/lib/google_api/auth_spec. spec/lib/google_api/cloud_platform/client_spec
Diffstat (limited to 'lib/google_api')
-rw-r--r--lib/google_api/cloud_platform/client.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/google_api/cloud_platform/client.rb b/lib/google_api/cloud_platform/client.rb
index d13e3290cf5..926b7402cd5 100644
--- a/lib/google_api/cloud_platform/client.rb
+++ b/lib/google_api/cloud_platform/client.rb
@@ -65,7 +65,8 @@ module GoogleApi
end
def parse_operation_id(self_link)
- self_link.match(%r{projects/.*/zones/.*/operations/(.*)})[1]
+ m = self_link.match(%r{projects/.*/zones/.*/operations/(.*)})
+ m[1] if m
end
end
end