Revision b8c160c1 lib/rpc.py

b/lib/rpc.py
565 565
    return result
566 566

  
567 567
  @staticmethod
568
  def _EncodeImportExportIO(ieio, ieioargs):
568
  def _EncodeImportExportIO((ieio, ieioargs)):
569 569
    """Encodes import/export I/O information.
570 570

  
571 571
    """
572 572
    if ieio == constants.IEIO_RAW_DISK:
573 573
      assert len(ieioargs) == 1
574
      return (ieioargs[0].ToDict(), )
574
      return (ieio, (ieioargs[0].ToDict(), ))
575 575

  
576 576
    if ieio == constants.IEIO_SCRIPT:
577 577
      assert len(ieioargs) == 2
578
      return (ieioargs[0].ToDict(), ieioargs[1])
578
      return (ieio, (ieioargs[0].ToDict(), ieioargs[1]))
579 579

  
580
    return ieioargs
580
    return (ieio, ieioargs)
581 581

  
582 582
  @staticmethod
583 583
  def _PrepareFileUpload(filename):

Also available in: Unified diff