Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Melodic
melodic-integration
Commits
374a2ca0
Commit
374a2ca0
authored
May 31, 2022
by
Jan Marchel
Browse files
adding ssh key properties
parent
4c973e88
Changes
1
Hide whitespace changes
Inline
Side-by-side
mule_esb/mule-integration/src/main/java/cloud/morphemic/mule_integration/proactive/ProactiveClientServiceForIntegrationImpl.java
View file @
374a2ca0
...
...
@@ -63,6 +63,10 @@ public class ProactiveClientServiceForIntegrationImpl extends ProactiveClientSer
String
defaultNetwork
=
null
;
String
subnet
=
null
;
String
regionBlacklist
=
null
;
String
sshUsername
=
null
;
String
sshKeyPairName
=
null
;
String
sshPrivateKey
=
null
;
JSONObject
scopeJSON
=
new
JSONObject
();
LinkedHashMap
cloudConfiguration
=
(
LinkedHashMap
)((
LinkedHashMap
)
cloudDefinition
).
get
(
"cloudConfiguration"
);
...
...
@@ -70,10 +74,18 @@ public class ProactiveClientServiceForIntegrationImpl extends ProactiveClientSer
identityVersion
=
(
cloudConfiguration
.
get
(
"identityVersion"
)
!=
null
)
?
Integer
.
parseInt
((
String
)
cloudConfiguration
.
get
(
"identityVersion"
))
:
null
;
scopePrefix
=
(
cloudConfiguration
.
get
(
"scopePrefix"
)
!=
null
)
?
(
String
)
cloudConfiguration
.
get
(
"scopePrefix"
)
:
null
;
scopeValue
=
(
cloudConfiguration
.
get
(
"scopeValue"
)
!=
null
)
?
(
String
)
cloudConfiguration
.
get
(
"scopeValue"
)
:
null
;
sshUsername
=
(
cloudConfiguration
.
get
(
"sshUsername"
)
!=
null
)
?
(
String
)
cloudConfiguration
.
get
(
"sshUsername"
)
:
null
;
sshKeyPairName
=
(
cloudConfiguration
.
get
(
"sshKeyPairName"
)
!=
null
)
?
(
String
)
cloudConfiguration
.
get
(
"sshKeyPairName"
)
:
null
;
sshPrivateKey
=
(
cloudConfiguration
.
get
(
"sshPrivateKey"
)
!=
null
)
?
(
String
)
cloudConfiguration
.
get
(
"sshPrivateKey"
)
:
null
;
cloudJSON
.
put
(
"identityVersion"
,
identityVersion
);
scopeJSON
.
put
(
"prefix"
,
scopePrefix
);
scopeJSON
.
put
(
"value"
,
scopeValue
);
cloudJSON
.
put
(
"scope"
,
scopeJSON
);
cloudJSON
.
put
(
"sshUsername"
,
sshUsername
);
cloudJSON
.
put
(
"sshKyPairName"
,
sshKeyPairName
);
cloudJSON
.
put
(
"sshPrivateKey"
,
sshPrivateKey
);
LinkedHashMap
properties
=
(
LinkedHashMap
)
cloudConfiguration
.
get
(
"properties"
);
if
(
ObjectUtils
.
isNotEmpty
(
properties
))
{
securityGroup
=
(
String
)
properties
.
get
(
"securityGroup"
);
...
...
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