Commit 61dec056 authored by Lisa Velden's avatar Lisa Velden

Add OpTestOsParams to filterSecretParameters

The opcde OpTestOsParams for gnt-debug test-osparams has to be added
to the list of opcodes which can contain secret parameters. This is
necessary to determine the secret parameters that are handed over in
the last step of forking a job process.
Signed-off-by: default avatarLisa Velden <velden@google.com>
Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
parent 77bd638b
......@@ -205,8 +205,9 @@ filterSecretParameters =
getSecretParams :: OpCode -> Maybe (JSObject (Secret JSValue))
getSecretParams opcode =
case opcode of
(OpInstanceCreate {}) -> opOsparamsSecret opcode
(OpInstanceReinstall {}) -> opOsparamsSecret opcode
(OpInstanceCreate {opOsparamsSecret = x}) -> x
(OpInstanceReinstall {opOsparamsSecret = x}) -> x
(OpTestOsParams {opOsparamsSecret = x}) -> x
_ -> Nothing
-- | Forks a child POSIX process, creating a bi-directional communication
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment