Unify multi-instance handling in gnt-instance
authorIustin Pop <iustin@google.com>
Fri, 18 Sep 2009 11:45:23 +0000 (13:45 +0200)
committerIustin Pop <iustin@google.com>
Fri, 18 Sep 2009 13:59:56 +0000 (15:59 +0200)
commit1c5945b69a2ca084ba30acff6f57a7fde3d66412
tree70492fe74023fd0b16d778958dca6c5e97107adc
parent3e54ace742a2775988f13d1a436fee90380c60b1
Unify multi-instance handling in gnt-instance

Start, stop and reboot have the same code for dealing with
multi-instance handling. This patch moves all that into a single generic
function, and leaves only the building of the specific opcode for the
operation in the individual functions.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
scripts/gnt-instance