Commit 8eb5c246 authored by Spiros Koulouzis's avatar Spiros Koulouzis

cast output

parent ae9b9098
...@@ -14,7 +14,7 @@ tar -czvf drip-deployer.tar.gz drip-deployer ...@@ -14,7 +14,7 @@ tar -czvf drip-deployer.tar.gz drip-deployer
mv drip-deployer.tar.gz build mv drip-deployer.tar.gz build
tar -czvf drip-planner.tar.gz drip-planner tar -czvf drip-planner.tar.gz drip_planner2
mv drip-planner.tar.gz build mv drip-planner.tar.gz build
......
...@@ -387,7 +387,11 @@ public class DeployService { ...@@ -387,7 +387,11 @@ public class DeployService {
for (Map<String, Object> port : ports) { for (Map<String, Object> port : ports) {
Set<String> keys = port.keySet(); Set<String> keys = port.keySet();
for (String key : keys) { for (String key : keys) {
outputs = TOSCAUtils.buildTOSCAOutput(outputs, serviceName, String.valueOf((Integer) port.get(key)), key, false); if (port.get(key) instanceof Integer) {
outputs = TOSCAUtils.buildTOSCAOutput(outputs, serviceName, String.valueOf((Integer) port.get(key)), key, false);
} else {
outputs = TOSCAUtils.buildTOSCAOutput(outputs, serviceName, (String) port.get(key), key, false);
}
} }
} }
...@@ -563,7 +567,6 @@ public class DeployService { ...@@ -563,7 +567,6 @@ public class DeployService {
Map<String, String> nodeTypeCache = new HashMap<>(); Map<String, String> nodeTypeCache = new HashMap<>();
Map<String, String> domainCache = new HashMap<>(); Map<String, String> domainCache = new HashMap<>();
Map<String, String> osTypeCache = new HashMap<>(); Map<String, String> osTypeCache = new HashMap<>();
for (AnsibleOutput ansOut : outputList) { for (AnsibleOutput ansOut : outputList) {
Map<String, Object> map = provisionService.findOne(deployInfo.getProvisionID()).getKeyValue(); Map<String, Object> map = provisionService.findOne(deployInfo.getProvisionID()).getKeyValue();
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
<change beforePath="$PROJECT_DIR$/../build.sh" beforeDir="false" afterPath="$PROJECT_DIR$/../build.sh" afterDir="false" /> <change beforePath="$PROJECT_DIR$/../build.sh" beforeDir="false" afterPath="$PROJECT_DIR$/../build.sh" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../drip-api/hs_err_pid26067.log" beforeDir="false" /> <change beforePath="$PROJECT_DIR$/../drip-api/hs_err_pid26067.log" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/rpc_server.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/rpc_server.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/venv/lib/python3.6/site-packages/easy-install.pth" beforeDir="false" /> <change beforePath="$PROJECT_DIR$/venv/lib/python3.6/site-packages/easy-install.pth" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/venv/lib/python3.6/site-packages/prettytable.py" beforeDir="false" /> <change beforePath="$PROJECT_DIR$/venv/lib/python3.6/site-packages/prettytable.py" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/venv/lib/python3.6/site-packages/pyparsing.py" beforeDir="false" /> <change beforePath="$PROJECT_DIR$/venv/lib/python3.6/site-packages/pyparsing.py" beforeDir="false" />
...@@ -140,7 +139,14 @@ ...@@ -140,7 +139,14 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1569887951720</updated> <updated>1569887951720</updated>
</task> </task>
<option name="localTasksCounter" value="5" /> <task id="LOCAL-00005" summary="check if message is byte">
<created>1569889346968</created>
<option name="number" value="00005" />
<option name="presentableId" value="LOCAL-00005" />
<option name="project" value="LOCAL" />
<updated>1569889346968</updated>
</task>
<option name="localTasksCounter" value="6" />
<servers /> <servers />
</component> </component>
<component name="Vcs.Log.Tabs.Properties"> <component name="Vcs.Log.Tabs.Properties">
...@@ -162,7 +168,8 @@ ...@@ -162,7 +168,8 @@
<MESSAGE value="format TOSCA output" /> <MESSAGE value="format TOSCA output" />
<MESSAGE value="changed to ubunut 17.10" /> <MESSAGE value="changed to ubunut 17.10" />
<MESSAGE value="debug" /> <MESSAGE value="debug" />
<option name="LAST_COMMIT_MESSAGE" value="debug" /> <MESSAGE value="check if message is byte" />
<option name="LAST_COMMIT_MESSAGE" value="check if message is byte" />
</component> </component>
<component name="XDebuggerManager"> <component name="XDebuggerManager">
<breakpoint-manager> <breakpoint-manager>
......
File deleted
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