~vishvananda/nova/lp720393

« back to all changes in this revision

Viewing changes to nova/virt/xenapi/vm_utils.py

  • Committer: Tarmac
  • Author(s): Trey Morris
  • Date: 2011-02-15 22:39:50 UTC
  • mfrom: (678.1.1 percent_s)
  • Revision ID: tarmac-20110215223950-s84uukpcgcpkl06f
this bug bit me hard today. pv can be None, which does not translate to %d and this error gets clobbered by causing errors in the business in charge of capturing output and reporting errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
394
394
            pv = True
395
395
        elif pv_str.lower() == 'false':
396
396
            pv = False
397
 
        LOG.debug(_("PV Kernel in VDI:%d"), pv)
 
397
        LOG.debug(_("PV Kernel in VDI:%s"), pv)
398
398
        return pv
399
399
 
400
400
    @classmethod