Commit 3ec949cd authored by Spiros Koulouzis's avatar Spiros Koulouzis

added method to get interface instance with default values

parent 28969573
......@@ -238,9 +238,12 @@ public class ToscaHelper {
return null;
}
private Map<String, Object> getProvisionInterfaceInstance(Map<String, Object> definition, String operation) {
Map<String, Object> provisionInterface = new HashMap<>();
Map<String, Object> inputs = (Map<String, Object>) definition.get("inputs");
private Map<String, Object> getProvisionInterfaceInstance(Map<String, Object> definition, String operation) throws ApiException {
String type = definition.keySet().iterator().next();
String[] typeArray = type.split(".");
Map<String, Object> provisionInterface = api.getDefaultInterface(String.valueOf(id), type, typeArray[typeArray.length - 1], operation);
return null;
}
}
Markdown is supported
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