Revision eb630f50 lib/rpc.py

b/lib/rpc.py
1202 1202
    """
1203 1203
    return self._SingleNodeCall(node, "x509_cert_remove", [name])
1204 1204

  
1205
  def call_import_start(self, node, x509_key_name, source_x509_ca,
1206
                        instance, dest, dest_args):
1205
  def call_import_start(self, node, opts, instance, dest, dest_args):
1207 1206
    """Starts a listener for an import.
1208 1207

  
1209 1208
    This is a single-node call.
......
1215 1214

  
1216 1215
    """
1217 1216
    return self._SingleNodeCall(node, "import_start",
1218
                                [x509_key_name, source_x509_ca,
1217
                                [opts.ToDict(),
1219 1218
                                 self._InstDict(instance), dest,
1220 1219
                                 _EncodeImportExportIO(dest, dest_args)])
1221 1220

  
1222
  def call_export_start(self, node, x509_key_name, dest_x509_ca, host, port,
1221
  def call_export_start(self, node, opts, host, port,
1223 1222
                        instance, source, source_args):
1224 1223
    """Starts an export daemon.
1225 1224

  
......
1232 1231

  
1233 1232
    """
1234 1233
    return self._SingleNodeCall(node, "export_start",
1235
                                [x509_key_name, dest_x509_ca, host, port,
1234
                                [opts.ToDict(), host, port,
1236 1235
                                 self._InstDict(instance), source,
1237 1236
                                 _EncodeImportExportIO(source, source_args)])
1238 1237

  

Also available in: Unified diff