Skip to content
This repository was archived by the owner on Feb 8, 2026. It is now read-only.

Commit c4575e2

Browse files
author
Garry Sharp
committed
fmt.Errorf small fix in error message.
1 parent 9638cb2 commit c4575e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugin/dca/dca.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (p *DCAPlugin) ValidatePluginPolicy(policyDoc vtypes.PluginPolicy) error {
145145
}
146146

147147
if fmt.Sprintf("%d", policyDoc.PolicyVersion) != policyVersion { //TODO policy version will essentially be a nonce that is incremented by 1, not, like plugin versions that will follow traditional engineering versioning e.g. v2.12.3. For now we can compare string types
148-
return fmt.Errorf("policy does not match policy version, expected: %s, got: %s", policyVersion, policyDoc.PolicyVersion)
148+
return fmt.Errorf("policy does not match policy version, expected: %s, got: %d", policyVersion, policyDoc.PolicyVersion)
149149
}
150150

151151
if policyDoc.PublicKey == "" {

0 commit comments

Comments
 (0)