Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
ce062f21
Commit
ce062f21
authored
10 years ago
by
Tim Emiola
Browse files
Options
Downloads
Patches
Plain Diff
Updates interop client to use update_proc
parent
03d70c64
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ruby/bin/interop/interop_client.rb
+2
-3
2 additions, 3 deletions
src/ruby/bin/interop/interop_client.rb
with
2 additions
and
3 deletions
src/ruby/bin/interop/interop_client.rb
+
2
−
3
View file @
ce062f21
...
...
@@ -106,15 +106,14 @@ def create_stub(opts)
fd
=
StringIO
.
new
(
File
.
read
(
opts
.
oauth_key_file
))
logger
.
info
(
"loading oauth certs from
#{
opts
.
oauth_key_file
}
"
)
auth_creds
=
ServiceAccountCredentials
.
new
(
opts
.
oauth_scope
,
fd
)
stub_opts
[
:update_metadata
]
=
lambda
(
&
auth_creds
.
method
(
:apply
))
stub_opts
[
:update_metadata
]
=
auth_creds
.
updater_proc
end
end
# Add compute engine creds if specified
if
%w(all compute_engine_creds)
.
include?
(
opts
.
test_case
)
unless
opts
.
oauth_scope
.
nil?
auth_creds
=
GCECredentials
.
new
stub_opts
[
:update_metadata
]
=
lambda
(
&
auth_creds
.
method
(
:apply
))
stub_opts
[
:update_metadata
]
=
GCECredentials
.
new
.
update_proc
end
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment