Revision 4ff922a2 lib/client/gnt_backup.py
b/lib/client/gnt_backup.py | ||
---|---|---|
1 | 1 |
# |
2 | 2 |
# |
3 | 3 |
|
4 |
# Copyright (C) 2006, 2007, 2010 Google Inc. |
|
4 |
# Copyright (C) 2006, 2007, 2010, 2011 Google Inc.
|
|
5 | 5 |
# |
6 | 6 |
# This program is free software; you can redistribute it and/or modify |
7 | 7 |
# it under the terms of the GNU General Public License as published by |
... | ... | |
76 | 76 |
raise errors.OpPrereqError("Target node must be specified", |
77 | 77 |
errors.ECODE_INVAL) |
78 | 78 |
|
79 |
op = opcodes.OpExportInstance(instance_name=args[0],
|
|
80 |
target_node=opts.node,
|
|
81 |
shutdown=opts.shutdown,
|
|
82 |
shutdown_timeout=opts.shutdown_timeout,
|
|
83 |
remove_instance=opts.remove_instance,
|
|
84 |
ignore_remove_failures=ignore_remove_failures)
|
|
79 |
op = opcodes.OpBackupExport(instance_name=args[0],
|
|
80 |
target_node=opts.node, |
|
81 |
shutdown=opts.shutdown, |
|
82 |
shutdown_timeout=opts.shutdown_timeout, |
|
83 |
remove_instance=opts.remove_instance, |
|
84 |
ignore_remove_failures=ignore_remove_failures) |
|
85 | 85 |
|
86 | 86 |
SubmitOpCode(op, opts=opts) |
87 | 87 |
return 0 |
Also available in: Unified diff