Commit 374a2ca0 authored by Jan Marchel's avatar Jan Marchel
Browse files

adding ssh key properties

parent 4c973e88
......@@ -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");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment