Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
a8459f1c
Commit
a8459f1c
authored
Nov 21, 2007
by
Iustin Pop
Browse files
Fix logging in drbd _ShutdownNet method
We didn't test for failure, just always logged the output. Reviewed-by: imsnah
parent
520de3bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/bdev.py
View file @
a8459f1c
...
...
@@ -1341,7 +1341,8 @@ class DRBDev(BaseDRBD):
"""
result
=
utils
.
RunCmd
([
"drbdsetup"
,
cls
.
_DevPath
(
minor
),
"disconnect"
])
logger
.
Error
(
"Can't shutdown network: %s"
%
result
.
output
)
if
result
.
failed
:
logger
.
Error
(
"Can't shutdown network: %s"
%
result
.
output
)
return
not
result
.
failed
def
Assemble
(
self
):
...
...
@@ -2170,7 +2171,8 @@ class DRBD8(BaseDRBD):
"""
result
=
utils
.
RunCmd
([
"drbdsetup"
,
cls
.
_DevPath
(
minor
),
"disconnect"
])
logger
.
Error
(
"Can't shutdown network: %s"
%
result
.
output
)
if
result
.
failed
:
logger
.
Error
(
"Can't shutdown network: %s"
%
result
.
output
)
return
not
result
.
failed
@
classmethod
...
...
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