jqueue: Don't modify input opcode when changing priority
authorMichael Hanselmann <hansmi@google.com>
Wed, 5 Dec 2012 12:42:45 +0000 (13:42 +0100)
committerMichael Hanselmann <hansmi@google.com>
Wed, 5 Dec 2012 15:35:53 +0000 (16:35 +0100)
commit3c631ea2e9a5c6f7b6e196d3acf6b13a34f413e8
tree8978646c26942f53c5d9245f5d6863ed7318742a
parentca519248ff6285da678228c3af6f671f1a560d0e
jqueue: Don't modify input opcode when changing priority

Commit 4679547 implemented the ability to change job's priority after it
was submitted. The code contained a bug whereby it would modify the
input data for an opcode, something the job queue shouldn't do (logical
units do for historical reasons).

This patch removes the line modifying the opcode input and adjusts the
tests.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/jqueue.py
test/ganeti.jqueue_unittest.py