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
16edfa23
Commit
16edfa23
authored
Apr 01, 2022
by
Jan Marchel
Browse files
adding subnet argument
parent
238142b0
Pipeline
#20457
passed with stages
in 9 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
mule_esb/mule-integration/src/main/java/cloud/morphemic/mule_integration/proactive/ProactiveClientServiceForIntegrationImpl.java
View file @
16edfa23
...
...
@@ -58,9 +58,10 @@ public class ProactiveClientServiceForIntegrationImpl extends ProactiveClientSer
String
securityGroup
=
null
;
String
nodeGroup
=
null
;
Integer
identityVersion
;
String
scopePrefix
=
null
;
String
scopeValue
=
null
;
String
scopePrefix
;
String
scopeValue
;
String
defaultNetwork
=
null
;
String
subnet
=
null
;
String
regionBlacklist
=
null
;
JSONObject
scopeJSON
=
new
JSONObject
();
...
...
@@ -77,12 +78,14 @@ public class ProactiveClientServiceForIntegrationImpl extends ProactiveClientSer
if
(
ObjectUtils
.
isNotEmpty
(
properties
))
{
securityGroup
=
(
String
)
properties
.
get
(
"securityGroup"
);
defaultNetwork
=
(
String
)
properties
.
get
(
"defaultNetwork"
);
subnet
=
(
String
)
properties
.
get
(
"subnet"
);
regionBlacklist
=
(
String
)
properties
.
get
(
"regionBlacklist"
);
}
nodeGroup
=
(
String
)
cloudConfiguration
.
get
(
"nodeGroup"
);
}
cloudJSON
.
put
(
"securityGroup"
,
MoreObjects
.
firstNonNull
(
securityGroup
,
JSONObject
.
NULL
));
cloudJSON
.
put
(
"defaultNetwork"
,
MoreObjects
.
firstNonNull
(
defaultNetwork
,
JSONObject
.
NULL
));
cloudJSON
.
put
(
"subnet"
,
MoreObjects
.
firstNonNull
(
subnet
,
JSONObject
.
NULL
));
cloudJSON
.
put
(
"credentials"
,
credentialsJSON
);
cloudJSON
.
put
(
"nodeGroup"
,
MoreObjects
.
firstNonNull
(
nodeGroup
,
JSONObject
.
NULL
));
cloudsJSONArray
.
put
(
cloudJSON
);
...
...
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