~javier.collado/utah/invalid_syntax_fix

« back to all changes in this revision

Viewing changes to utah/provisioning/vm/libvirtvm.py

  • Committer: Max Brustkern
  • Date: 2012-07-16 19:50:18 UTC
  • mfrom: (421.1.2 bug1025219)
  • Revision ID: max@canonical.com-20120716195018-7p10se564mulp859
Merged Javier's exception fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
                self._load()
65
65
            except UTAHVMProvisioningException as error:
66
66
                self.logger.error('VM lookup failed')
67
 
                raise UTAHVMProvisioningException('Cannot find VM named ' + self.name + ' and ' + error.msg)
 
67
                raise UTAHVMProvisioningException('Cannot find VM named ' + self.name + ' and ' + str(error))
68
68
        self.provisioned = True
69
69
        self.logger.info('VM provisioned')
70
70