Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drd_agent
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
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
project
drd_agent
Commits
ab72fefa
Commit
ab72fefa
authored
2 months ago
by
Jørn Fauske
Committed by
Jürgen Haas
2 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3512611
by jfauske, adrianm6254, jurgenhaas: "OpenSSL" not found
parent
91e7eeeb
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!12
Issue #3512611 Update crypt method names stored in state.
Pipeline
#511693
passed with warnings
1 day ago
Stage: build
Stage: validate
Changes
1
Pipelines
13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drd_agent.install
+21
-0
21 additions, 0 deletions
drd_agent.install
with
21 additions
and
0 deletions
drd_agent.install
+
21
−
0
View file @
ab72fefa
...
...
@@ -34,3 +34,24 @@ function drd_agent_update_8001(mixed &$sandbox): void {
$config
->
delete
();
}
/**
* Update stored crypt methods after 4.1.3 update.
*/
function
drd_agent_update_8002
():
void
{
$state
=
\Drupal
::
state
();
$authorized
=
$state
->
get
(
'drd_agent.authorised'
);
// Check if old state values exists.
if
(
$authorized
!==
NULL
)
{
foreach
(
$authorized
as
$uuid
=>
$settings
)
{
match
(
$settings
[
'crypt'
])
{
'OpenSSL'
=>
$authorized
[
$uuid
][
'crypt'
]
=
'OpenSsl'
,
'TLS'
=>
$authorized
[
$uuid
][
'crypt'
]
=
'Tls'
,
default
=>
NULL
,
};
}
$state
->
set
(
'drd_agent.authorised'
,
$authorized
);
}
}
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