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
a02bc76e
Commit
a02bc76e
authored
Aug 20, 2007
by
Iustin Pop
Browse files
A CheckPrereq method had one unconverted "return 1" statement. Change it to the
appropriate raise. Reviewed-by: imsnah
parent
ce482672
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/cmdlib.py
View file @
a02bc76e
...
...
@@ -1052,8 +1052,7 @@ class LURemoveNode(LogicalUnit):
"""
node
=
self
.
cfg
.
GetNodeInfo
(
self
.
cfg
.
ExpandNodeName
(
self
.
op
.
node_name
))
if
node
is
None
:
logger
.
Error
(
"Error: Node '%s' is unknown."
%
self
.
op
.
node_name
)
return
1
raise
errors
.
OpPrereqError
,
(
"Node '%s' is unknown."
%
self
.
op
.
node_name
)
instance_list
=
self
.
cfg
.
GetInstanceList
()
...
...
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