Skip to content

Commit 4fc5d25

Browse files
authored
fix(cli): remove hardcoded message (#1776)
Signed-off-by: Miguel Martinez <[email protected]>
1 parent ea86c65 commit 4fc5d25

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/cli/cmd/attestation_push.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ func newAttestationPushCmd() *cobra.Command {
134134

135135
const exceptionFlagName = "exception-bypass-policy-check"
136136

137-
var ErrBlockedByPolicyViolation = fmt.Errorf("the operator requires all policies to pass before continuing, please fix them and try again or temporarily bypass the policy check using --%s", exceptionFlagName)
138-
139-
const exceptionBypassPolicyCheck = "Attention: You have opted to bypass the policy enforcement check and an operator has been notified of this exception.\nPlease make sure you are back on track with the policy evaluations and remove the --exception_bypass_policy_check as soon as possible."
137+
var (
138+
ErrBlockedByPolicyViolation = fmt.Errorf("the operator requires all policies to pass before continuing, please fix them and try again or temporarily bypass the policy check using --%s", exceptionFlagName)
139+
exceptionBypassPolicyCheck = fmt.Sprintf("Attention: You have opted to bypass the policy enforcement check and an operator has been notified of this exception.\nPlease make sure you are back on track with the policy evaluations and remove the --%s as soon as possible.", exceptionFlagName)
140+
)

0 commit comments

Comments
 (0)