def _CheckSecretParameters(op):
  if hasattr(op, "osparams_secret") and op.osparams_secret:
    for secret_param in op.osparams_secret:
      if op.osparams_secret[secret_param].Get() == constants.REDACTED:
        raise errors.OpPrereqError("Please re-submit secret parameters to job.",
                                   errors.ECODE_INVAL)
Check if secret parameters are expected, but missing.
dataset/ETHPy150Open ganeti/ganeti/lib/mcpu.py/_CheckSecretParameters