~ubuntu-branches/ubuntu/quantal/virtinst/quantal-proposed

« back to all changes in this revision

Viewing changes to virtinst/CloneManager.py

  • Committer: Bazaar Package Importer
  • Author(s): Guido Günther
  • Date: 2009-12-07 10:04:22 UTC
  • mto: (1.6.3 sid)
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: james.westby@ubuntu.com-20091207100422-2izjffd5ljvqun47
Tags: upstream-0.500.1
Import upstream version 0.500.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
212
212
 
213
213
        # Check path is valid
214
214
        # XXX: What if disk is being preserved, and storage is readonly?
215
 
        try:
216
 
            for path in pathlist:
 
215
        for path in pathlist:
 
216
            try:
217
217
                device = VirtualDisk.DEVICE_DISK
218
218
                if not path:
219
219
                    device = VirtualDisk.DEVICE_CDROM
222
222
                                   conn=self._hyper_conn,
223
223
                                   device=device)
224
224
                disklist.append(disk)
225
 
        except Exception, e:
226
 
            raise ValueError(_("Could not use path '%s' for cloning: %s") %
227
 
                             (devpath, str(e)))
 
225
            except Exception, e:
 
226
                raise ValueError(_("Could not use path '%s' for cloning: %s") %
 
227
                                 (path, str(e)))
228
228
 
229
229
        if is_list:
230
230
            self._clone_virtual_disks = []