Skip to content

refactor: use cinc-api v0.15.1's scalar attribute and server message helpers - #266

Merged
tas50 merged 1 commit into
mainfrom
refactor/use-cinc-api-v0.15.1-helpers
Sep 24, 2026
Merged

tas50 merged 1 commit into
mainfrom
refactor/use-cinc-api-v0.15.1-helpers

Conversation

@tas50

@tas50 tas50 commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

Picks up two cinc-api v0.15.1 helpers (main already requires v0.15.1).

  • node ssh --attribute cloud used to hand SSH Go's map[...] text as the host name, because AttributeString formatted an object value. It now uses Node.AttributeScalar. When the attribute is an object, the error names a few dotted paths inside it, e.g. --attribute cloud.public_hostname.
  • The ACL error explainer's serverMessage delegates to ErrorResponse.ServerMessage.

Test plan

  • New TestNodeSSHHostRejectsNonScalarAttribute fails before the change and passes after
  • go test ./apps/cinc/cmd/, go vet, gofmt

…helpers

node ssh --attribute cloud used to hand SSH Go's map text as the host,
because AttributeString formatted an object value. Use AttributeScalar
and, for an object, suggest dotted paths inside it. The ACL error
explainer's own serverMessage now delegates to ErrorResponse.ServerMessage.

Signed-off-by: Tim Smith <tsmith84@proton.me>
@tas50
tas50 enabled auto-merge (squash) September 24, 2026 10:16
@tas50
tas50 merged commit 39209ec into main Sep 24, 2026
6 checks passed
@tas50
tas50 deleted the refactor/use-cinc-api-v0.15.1-helpers branch September 24, 2026 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant