Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Search
Commits
c017848d
Commit
c017848d
authored
Aug 06, 2021
by
Bill Wang
Browse files
fix type
parent
27fbe3fc
Changes
1
Show whitespace changes
Inline
Side-by-side
provider/search-aws/src/main/java/org/opengroup/osdu/search/provider/aws/persistence/ElasticRepositoryImpl.java
View file @
c017848d
...
...
@@ -76,9 +76,9 @@ public class ElasticRepositoryImpl implements IElasticRepository {
host
=
provider
.
getParameterAsString
(
hostParameter
);
port
=
Integer
.
parseInt
(
provider
.
getParameterAsString
(
portParameter
));
Type
mapType
=
new
TypeToken
<
Map
<
String
,
String
>>(){}.
getType
();
Map
<
String
,
String
[]
>
val
=
new
Gson
().
fromJson
(
provider
.
getParameterAsString
(
elasticCredentialsSecret
),
mapType
);
username
=
val
.
get
(
"username"
)
.
toString
()
;
password
=
val
.
get
(
"password"
)
.
toString
()
;
Map
<
String
,
String
>
val
=
new
Gson
().
fromJson
(
provider
.
getParameterAsString
(
elasticCredentialsSecret
),
mapType
);
username
=
val
.
get
(
"username"
);
password
=
val
.
get
(
"password"
);
//elastic expects username:password format
usernameAndPassword
=
String
.
format
(
"%s:%s"
,
username
,
password
);
...
...
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