Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
JAliEn
JAliEn
Commits
ce401be4
Commit
ce401be4
authored
May 06, 2021
by
Max
Browse files
Only update config if something's returned
parent
9e2112bb
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/alien/site/ComputingElement.java
View file @
ce401be4
...
...
@@ -119,7 +119,10 @@ public final class ComputingElement extends Thread {
logger
.
info
(
"Building new SiteMap."
);
try
{
config
=
ConfigUtils
.
getConfigFromLdap
();
final
HashMap
<
String
,
Object
>
newConfig
=
ConfigUtils
.
getConfigFromLdap
();
if
(
newConfig
!=
null
)
{
config
=
newConfig
;
site
=
(
String
)
config
.
get
(
"site_accountname"
);
getSiteMap
();
...
...
@@ -129,6 +132,7 @@ public final class ComputingElement extends Thread {
logger
.
info
(
"["
+
field
+
": "
+
entry
+
"]"
);
});
}
}
catch
(
Exception
ex
)
{
logger
.
log
(
Level
.
WARNING
,
"Error syncing with LDAP: "
,
ex
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment