Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
51dba333
Commit
51dba333
authored
May 12, 2017
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check if key is present
parent
698454ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
20 deletions
+21
-20
DeployService.java
.../main/java/nl/uva/sne/drip/api/service/DeployService.java
+21
-20
No files found.
drip-api/src/main/java/nl/uva/sne/drip/api/service/DeployService.java
View file @
51dba333
...
...
@@ -468,33 +468,34 @@ public class DeployService {
jo
.
put
(
"result"
,
result
);
}
}
JSONObject
invocation
=
((
JSONObject
)
(
result
).
get
(
"invocation"
));
if
(
invocation
.
has
(
"module_args"
))
{
JSONObject
module_args
=
(
JSONObject
)
invocation
.
get
(
"module_args"
);
if
(
module_args
.
has
(
"msg"
))
{
if
(
result
.
has
(
"invocation"
))
{
JSONObject
invocation
=
((
JSONObject
)
(
result
).
get
(
"invocation"
));
if
(
invocation
.
has
(
"module_args"
))
{
JSONObject
module_args
=
(
JSONObject
)
invocation
.
get
(
"module_args"
);
if
(
module_args
.
has
(
"msg"
))
{
String
msg
;
try
{
msg
=
(
String
)
module_args
.
get
(
"msg"
);
}
catch
(
java
.
lang
.
ClassCastException
ex
)
{
JSONObject
message
=
(
JSONObject
)
module_args
.
get
(
"msg"
);
msg
=
Converter
.
jsonObject2String
(
message
.
toString
());
module_args
.
put
(
"msg"
,
msg
);
invocation
.
put
(
"module_args"
,
module_args
);
}
}
}
if
(
invocation
.
has
(
"msg"
))
{
String
msg
;
try
{
msg
=
(
String
)
module_args
.
get
(
"msg"
);
msg
=
(
String
)
invocation
.
get
(
"msg"
);
}
catch
(
java
.
lang
.
ClassCastException
ex
)
{
JSONObject
message
=
(
JSONObject
)
module_args
.
get
(
"msg"
);
JSONObject
message
=
(
JSONObject
)
invocation
.
get
(
"msg"
);
msg
=
Converter
.
jsonObject2String
(
message
.
toString
());
module_args
.
put
(
"msg"
,
msg
);
invocation
.
put
(
"module_args"
,
module_args
);
invocation
.
put
(
"msg"
,
msg
);
result
.
put
(
"invocation"
,
invocation
);
}
}
}
if
(
invocation
.
has
(
"msg"
))
{
String
msg
;
try
{
msg
=
(
String
)
invocation
.
get
(
"msg"
);
}
catch
(
java
.
lang
.
ClassCastException
ex
)
{
JSONObject
message
=
(
JSONObject
)
invocation
.
get
(
"msg"
);
msg
=
Converter
.
jsonObject2String
(
message
.
toString
());
invocation
.
put
(
"msg"
,
msg
);
result
.
put
(
"invocation"
,
invocation
);
}
}
newJa
.
put
(
jo
);
}
...
...
Write
Preview
Markdown
is supported
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