> +  pnode = qa_config.AcquireNode()
>    secret_keys = ["param1", "param2"]
>    cmd = (["gnt-debug", "test-osparams", "--os-parameters-secret",
>           "param1=secret1,param2=secret2", "--submit", "--print-jobid"])
> -  _TestRedactionOfSecretOsParams(cmd, secret_keys)
> +  _TestRedactionOfSecretOsParams(pnode.primary, cmd, secret_keys)
>  
>    cmd_output = stdout_of(["gnt-debug", "test-osparams",
>                           "--os-parameters-secret",
>                           "param1=secret1,param2=secret2"])
>    AssertIn("\'param1\': \'secret1\'", cmd_output)
>    AssertIn("\'param2\': \'secret2\'", cmd_output)
> +  pnode.Release()

If you Acquire an arbitrary node, how do you know you'll get a master
candidate (so that you can check the job files on that vNode)?
It is quite likely, you get one, but I don't think, it's guaranteed.


-- 
Klaus Aehlig
Google Germany GmbH, Dienerstr. 12, 80331 Muenchen
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschaeftsfuehrer: Graham Law, Christine Elizabeth Flores

Reply via email to