Revision eb630f50 daemons/ganeti-noded

b/daemons/ganeti-noded
847 847
    """Starts an import daemon.
848 848

  
849 849
    """
850
    (x509_key_name, source_x509_ca, instance, dest, dest_args) = params
851
    return backend.StartImportExportDaemon(constants.IEM_IMPORT,
852
                                           x509_key_name, source_x509_ca,
850
    (opts_s, instance, dest, dest_args) = params
851

  
852
    opts = objects.ImportExportOptions.FromDict(opts_s)
853

  
854
    return backend.StartImportExportDaemon(constants.IEM_IMPORT, opts,
853 855
                                           None, None,
854 856
                                           objects.Instance.FromDict(instance),
855 857
                                           dest,
856 858
                                           _DecodeImportExportIO(dest,
857 859
                                                                 dest_args))
860

  
858 861
  @staticmethod
859 862
  def perspective_export_start(params):
860 863
    """Starts an export daemon.
861 864

  
862 865
    """
863
    (x509_key_name, dest_x509_ca, host, port, instance,
864
     source, source_args) = params
865
    return backend.StartImportExportDaemon(constants.IEM_EXPORT,
866
                                           x509_key_name, dest_x509_ca,
866
    (opts_s, host, port, instance, source, source_args) = params
867

  
868
    opts = objects.ImportExportOptions.FromDict(opts_s)
869

  
870
    return backend.StartImportExportDaemon(constants.IEM_EXPORT, opts,
867 871
                                           host, port,
868 872
                                           objects.Instance.FromDict(instance),
869 873
                                           source,

Also available in: Unified diff