hiera-eyaml icon indicating copy to clipboard operation
hiera-eyaml copied to clipboard

get return values instead of fatal errors

Open mvogt1 opened this issue 2 years ago • 0 comments

using eyaml in puppet like:

$method = lookup('secret::password_eyaml',String,undef,"INVALID")

is not fault tolerant. Everytime something goes wrong puppet aborts:

  • if private key is not found -> fatal error
  • if decoding fails -> fatal error

This is not how this should be handled. I like to get some status code so that I can react on the circumstances. The subsystem should not fail with error/exit.

mvogt1 avatar Sep 30 '22 08:09 mvogt1