Revision 4ff922a2 lib/rapi/rlib2.py

b/lib/rapi/rlib2.py
1 1
#
2 2
#
3 3

  
4
# Copyright (C) 2006, 2007, 2008, 2009, 2010 Google Inc.
4
# Copyright (C) 2006, 2007, 2008, 2009, 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
......
1163 1163
def _ParseExportInstanceRequest(name, data):
1164 1164
  """Parses a request for an instance export.
1165 1165

  
1166
  @rtype: L{opcodes.OpExportInstance}
1166
  @rtype: L{opcodes.OpBackupExport}
1167 1167
  @return: Instance export opcode
1168 1168

  
1169 1169
  """
......
1177 1177
  destination_x509_ca = baserlib.CheckParameter(data, "destination_x509_ca",
1178 1178
                                                default=None)
1179 1179

  
1180
  return opcodes.OpExportInstance(instance_name=name,
1181
                                  mode=mode,
1182
                                  target_node=target_node,
1183
                                  shutdown=shutdown,
1184
                                  remove_instance=remove_instance,
1185
                                  x509_key_name=x509_key_name,
1186
                                  destination_x509_ca=destination_x509_ca)
1180
  return opcodes.OpBackupExport(instance_name=name,
1181
                                mode=mode,
1182
                                target_node=target_node,
1183
                                shutdown=shutdown,
1184
                                remove_instance=remove_instance,
1185
                                x509_key_name=x509_key_name,
1186
                                destination_x509_ca=destination_x509_ca)
1187 1187

  
1188 1188

  
1189 1189
class R_2_instances_name_export(baserlib.R_Generic):

Also available in: Unified diff