X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/eb28ecf69da8f2307896407e50df76e1c4a1e6e6..5b14a488079fd9ffc9dd37fa7025b85a4e315370:/lib/client/gnt_backup.py diff --git a/lib/client/gnt_backup.py b/lib/client/gnt_backup.py index c154ae8..4d7047b 100644 --- a/lib/client/gnt_backup.py +++ b/lib/client/gnt_backup.py @@ -1,7 +1,7 @@ # # -# Copyright (C) 2006, 2007, 2010 Google Inc. +# Copyright (C) 2006, 2007, 2010, 2011 Google Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -76,12 +76,12 @@ def ExportInstance(opts, args): raise errors.OpPrereqError("Target node must be specified", errors.ECODE_INVAL) - op = opcodes.OpExportInstance(instance_name=args[0], - target_node=opts.node, - shutdown=opts.shutdown, - shutdown_timeout=opts.shutdown_timeout, - remove_instance=opts.remove_instance, - ignore_remove_failures=ignore_remove_failures) + op = opcodes.OpBackupExport(instance_name=args[0], + target_node=opts.node, + shutdown=opts.shutdown, + shutdown_timeout=opts.shutdown_timeout, + remove_instance=opts.remove_instance, + ignore_remove_failures=ignore_remove_failures) SubmitOpCode(op, opts=opts) return 0 @@ -107,7 +107,7 @@ def RemoveExport(opts, args): @return: the desired exit code """ - op = opcodes.OpRemoveExport(instance_name=args[0]) + op = opcodes.OpBackupRemove(instance_name=args[0]) SubmitOpCode(op, opts=opts) return 0