LGTM, thanks
On Wed, May 14, 2014 at 12:57 PM, 'Klaus Aehlig' via ganeti-devel < [email protected]> wrote: > Certain op-codes expand to a set of jobs. For > those new jobs, extend their reason trail with > the reasons of the job that expanded to them. > In this way, also for indirectly genreated jobs > a complete trace back to the initiator can be > established. > > Signed-off-by: Klaus Aehlig <[email protected]> > --- > lib/mcpu.py | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/lib/mcpu.py b/lib/mcpu.py > index 4498747..f27adc9 100644 > --- a/lib/mcpu.py > +++ b/lib/mcpu.py > @@ -210,6 +210,10 @@ def _SetBaseOpParams(src, defcomment, dst): > if not getattr(dst, opcodes.COMMENT_ATTR, None): > dst.comment = defcomment > > + if hasattr(src, constants.OPCODE_REASON): > + dst.reason = getattr(dst, constants.OPCODE_REASON, []) > + dst.reason.extend(getattr(src, constants.OPCODE_REASON, [])) > + > > def _ProcessResult(submit_fn, op, result): > """Examines opcode result. > -- > 1.9.1.423.g4596e3a > > -- -- Helga Velroyen | Software Engineer | [email protected] | Google Germany GmbH Dienerstr. 12 80331 München Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Geschäftsführer: Graham Law, Christine Elizabeth Flores
