~nova-coresec/ubuntu/maverick/libvirt/nova-ppa

« back to all changes in this revision

Viewing changes to python/libvirt-override-virConnect.py

  • Committer: Bazaar Package Importer
  • Author(s): Guido Günther
  • Date: 2010-05-09 14:25:00 UTC
  • mto: (1.2.5 upstream) (3.4.15 squeeze)
  • mto: This revision was merged to the branch mainline in revision 92.
  • Revision ID: james.westby@ubuntu.com-20100509142500-1aracjxxmac2zx33
Import upstream version 0.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
            cb = cbData["cb"]
95
95
            opaque = cbData["opaque"]
96
96
 
97
 
            cb(self, virDomain(self, _obj=dom), opaque)
 
97
            cb(self, virDomain(self, _obj=dom), srcPath, devAlias, opaque)
 
98
            return 0
 
99
        except AttributeError:
 
100
            pass
 
101
 
 
102
    def dispatchDomainEventIOErrorReasonCallback(self, dom, srcPath, devAlias, action, reason, cbData):
 
103
        """Dispatches events to python user domain IO error event callbacks
 
104
        """
 
105
        try:
 
106
            cb = cbData["cb"]
 
107
            opaque = cbData["opaque"]
 
108
 
 
109
            cb(self, virDomain(self, _obj=dom), srcPath, devAlias, action, reason, opaque)
98
110
            return 0
99
111
        except AttributeError:
100
112
            pass