Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
foreman_passwordstate
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LiU IT - Infrastructure
foreman_passwordstate
Commits
f62b3fa5
Verified
Commit
f62b3fa5
authored
1 year ago
by
Alexander Olofsson
Browse files
Options
Downloads
Patches
Plain Diff
Add TCP open timeout to passwordstate client
parent
3540b478
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
app/models/passwordstate_server.rb
+1
-1
1 addition, 1 deletion
app/models/passwordstate_server.rb
with
1 addition
and
1 deletion
app/models/passwordstate_server.rb
+
1
−
1
View file @
f62b3fa5
...
...
@@ -109,7 +109,7 @@ class PasswordstateServer < ApplicationRecord
def
client
require
'passwordstate'
@client
||=
Passwordstate
::
Client
.
new
(
url
,
api_type:
api_type
.
to_sym
,
timeout:
10
).
tap
do
|
cl
|
@client
||=
Passwordstate
::
Client
.
new
(
url
,
api_type:
api_type
.
to_sym
,
open_timeout:
5
,
timeout:
10
).
tap
do
|
cl
|
if
api_type
.
to_sym
==
:api
cl
.
auth_data
=
{
apikey:
password
}
else
...
...
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