mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2024-10-26 16:25:10 +03:00
Make block pull event dispatcher private
The method dispatchDomainEventBlockPullCallback which is used internally to dispatch block pull events to the python application code was missing the leading '_', to denote that it was private. All other event callback helpers have a leading '_'. No application should have been using this so it is justifiable to rename it. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
edb16fd5c1
commit
d05f105992
@ -113,7 +113,7 @@
|
||||
authScheme, subject, opaque)
|
||||
return 0
|
||||
|
||||
def dispatchDomainEventBlockPullCallback(self, dom, path, type, status, cbData):
|
||||
def _dispatchDomainEventBlockPullCallback(self, dom, path, type, status, cbData):
|
||||
"""Dispatches events to python user domain blockJob event callbacks
|
||||
"""
|
||||
try:
|
||||
|
@ -5998,7 +5998,7 @@ libvirt_virConnectDomainEventBlockJobCallback(virConnectPtr conn ATTRIBUTE_UNUSE
|
||||
|
||||
/* Call the Callback Dispatcher */
|
||||
pyobj_ret = PyObject_CallMethod(pyobj_conn,
|
||||
(char*)"dispatchDomainEventBlockPullCallback",
|
||||
(char*)"_dispatchDomainEventBlockPullCallback",
|
||||
(char*)"OsiiO",
|
||||
pyobj_dom, path, type, status, pyobj_cbData);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user