Skip to content

Commit 4272a82

Browse files
authored
Merge pull request #2875 from ControlSystemStudio/alarm-config-service
fix the bug in the creation of the userpassword credential for git push
2 parents f1db934 + 365c024 commit 4272a82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/alarm-config-logger/src/main/java/org/phoebus/alarm/logging/AlarmConfigLogger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ private void initialize() {
128128
sshdSessionFactory = builder.build(cache);
129129
}
130130
// Setup basic username/password auth
131-
if (props.contains("username") && props.contains("password")) {
131+
if (props.containsKey("username") && props.containsKey("password")) {
132132
usernamePasswordCredentialsProvider = new UsernamePasswordCredentialsProvider(
133133
props.getProperty("username"),
134134
props.getProperty("password"));

0 commit comments

Comments
 (0)