Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-ganeti
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
snf-ganeti
Commits
fdf7f055
Commit
fdf7f055
authored
16 years ago
by
Guido Trotter
Browse files
Options
Downloads
Patches
Plain Diff
Xen: use epydoc in MigrateInstance docstring
Reviewed-by: iustinp
parent
920aae98
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/hypervisor/hv_xen.py
+7
-7
7 additions, 7 deletions
lib/hypervisor/hv_xen.py
with
7 additions
and
7 deletions
lib/hypervisor/hv_xen.py
+
7
−
7
View file @
fdf7f055
...
...
@@ -269,16 +269,16 @@ class XenHypervisor(hv_base.BaseHypervisor):
def
MigrateInstance
(
self
,
instance
,
target
,
live
):
"""
Migrate an instance to a target node.
Arguments:
- instance: the name of the instance
- target: the ip of the target node
- live: whether to do live migration or not
Returns: none, errors will be signaled by exception.
The migration will not be attempted if the instance is not
currently running.
@type instance: string
@param instance: instance name
@type target: string
@param target: ip address of the target node
@type live: boolean
@param live: perform a live migration
"""
if
self
.
GetInstanceInfo
(
instance
)
is
None
:
raise
errors
.
HypervisorError
(
"
Instance not running, cannot migrate
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment