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
43017d26
Commit
43017d26
authored
Dec 14, 2008
by
Iustin Pop
Browse files
cleanup: fix use of _CheckNodeOnline
A few cases of wrong variable name. Reviewed-by: amishchenko
parent
8153e7e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/cmdlib.py
View file @
43017d26
...
...
@@ -2333,7 +2333,7 @@ class LUActivateInstanceDisks(NoHooksLU):
self
.
instance
=
self
.
cfg
.
GetInstanceInfo
(
self
.
op
.
instance_name
)
assert
self
.
instance
is
not
None
,
\
"Cannot retrieve locked instance %s"
%
self
.
op
.
instance_name
_CheckNodeOnline
(
self
,
instance
.
primary_node
)
_CheckNodeOnline
(
self
,
self
.
instance
.
primary_node
)
def
Exec
(
self
,
feedback_fn
):
"""Activate the disks.
...
...
@@ -2714,7 +2714,7 @@ class LUShutdownInstance(LogicalUnit):
self
.
instance
=
self
.
cfg
.
GetInstanceInfo
(
self
.
op
.
instance_name
)
assert
self
.
instance
is
not
None
,
\
"Cannot retrieve locked instance %s"
%
self
.
op
.
instance_name
_CheckNodeOnline
(
self
,
instance
.
primary_node
)
_CheckNodeOnline
(
self
,
self
.
instance
.
primary_node
)
def
Exec
(
self
,
feedback_fn
):
"""Shutdown the instance.
...
...
@@ -5527,7 +5527,7 @@ class LUExportInstance(LogicalUnit):
self
.
instance
=
self
.
cfg
.
GetInstanceInfo
(
instance_name
)
assert
self
.
instance
is
not
None
,
\
"Cannot retrieve locked instance %s"
%
self
.
op
.
instance_name
_CheckNodeOnline
(
self
,
instance
.
primary_node
)
_CheckNodeOnline
(
self
,
self
.
instance
.
primary_node
)
self
.
dst_node
=
self
.
cfg
.
GetNodeInfo
(
self
.
cfg
.
ExpandNodeName
(
self
.
op
.
target_node
))
...
...
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