Francesco Romani has posted comments on this change.
Change subject: virt: periodic: factor out periodic operations
......................................................................
Patch Set 13:
(2 comments)
https://gerrit.ovirt.org/#/c/44548/13/vdsm/virt/periodic.py
File vdsm/virt/periodic.py:
Line 254: def __repr__(self):
Line 255: return 'VmDispatcher(%s)' % self._create
Line 256:
Line 257:
Line 258: class _RunnableVmOperation(object):
I don't like the name - how is e.g. NumaInfoMonitor a superset of
RunnableV
Fair enough. What about _RunnableOnVm ?
Line 259: def __init__(self, vm):
Line 260: self._vm = vm
Line 261:
Line 262: def runnable(self):
Line 257:
Line 258: class _RunnableVmOperation(object):
Line 259: def __init__(self, vm):
Line 260: self._vm = vm
Line 261:
runnable needs to be property in this case
yep, missed
Line 262: def runnable(self):
Line 263: return self._vm.isDomainReadyForCommands()
Line 264:
Line 265:
--
To view, visit
https://gerrit.ovirt.org/44548
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I283331ecfa5b47c147f0a42cd4a6b51a49308fe7
Gerrit-PatchSet: 13
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <fromani(a)redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Martin Polednik <mpolednik(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-HasComments: Yes