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
22c23b07
Verified
Commit
22c23b07
authored
1 year ago
by
Alexander Olofsson
Browse files
Options
Downloads
Patches
Plain Diff
Use the correct methods for username information
parent
d6d0ce5e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#97461
failed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/models/concerns/foreman_passwordstate/host_managed_extensions.rb
+4
-2
4 additions, 2 deletions
...concerns/foreman_passwordstate/host_managed_extensions.rb
with
4 additions
and
2 deletions
app/models/concerns/foreman_passwordstate/host_managed_extensions.rb
+
4
−
2
View file @
22c23b07
...
...
@@ -135,12 +135,14 @@ module ForemanPasswordstate
logger
.
info
'Ensuring Passwordstate passwords are up-to-date...'
passwordstate_passwords
.
each
do
|
password
|
password
.
title
=
"
#{
password
.
username
}
@
#{
fqdn
}
"
password
.
description
=
"Foreman managed password for
#{
password
.
username
}
on
#{
fqdn
}
|
#{
stable_pw_desc
.
strip
}
"
password
.
title
=
"
#{
password
.
user
_
name
}
@
#{
fqdn
}
"
password
.
description
=
"Foreman managed password for
#{
password
.
user
_
name
}
on
#{
fqdn
}
|
#{
stable_pw_desc
.
strip
}
"
next
unless
password
.
send
(
:modified
).
any?
password
.
put
end
true
end
def
remove_passwordstate_passwords!
...
...
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