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
RDM Infrastructure
irods-clients
Commits
7b9de3b2
Commit
7b9de3b2
authored
Nov 10, 2021
by
Daalen, Tim van
Browse files
irods rules not always return an error
parent
a2c5b92f
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/irodsConnector.py
View file @
7b9de3b2
...
...
@@ -733,14 +733,19 @@ class irodsConnector():
stderr
=
[]
if
len
(
out
.
MsParam_PI
)
>
0
:
try
:
stdout
=
[
o
.
decode
()
for
o
in
(
out
.
MsParam_PI
[
0
].
inOutStruct
.
stdoutBuf
.
buf
.
strip
(
b
'
\x00
'
)).
split
(
b
'
\n
'
)]
stderr
=
[
o
.
decode
()
for
o
in
(
out
.
MsParam_PI
[
0
].
inOutStruct
.
stderrBuf
.
buf
.
strip
(
b
'
\x00
'
)).
split
(
b
'
\n
'
)]
if
out
.
MsParam_PI
[
0
].
inOutStruct
.
stdoutBuf
.
buf
!=
None
:
stdout
=
[
o
.
decode
()
for
o
in
(
out
.
MsParam_PI
[
0
].
inOutStruct
.
stdoutBuf
.
buf
.
strip
(
b
'
\x00
'
)).
split
(
b
'
\n
'
)]
else
:
stdout
=
""
if
out
.
MsParam_PI
[
0
].
inOutStruct
.
stderrBuf
.
buf
!=
None
:
stderr
=
[
o
.
decode
()
for
o
in
(
out
.
MsParam_PI
[
0
].
inOutStruct
.
stderrBuf
.
buf
.
strip
(
b
'
\x00
'
)).
split
(
b
'
\n
'
)]
else
:
stdout
=
""
except
AttributeError
:
logging
.
info
(
'RULE EXECUTION ERROR: '
+
str
(
stdout
+
stderr
),
exc_info
=
True
)
return
stdout
,
stderr
return
""
,
""
return
stdout
,
stderr
...
...
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