Skip to content

fix: Replace deprecated ui.Message() with ui.Say()#347

Merged
ppc64le-cloud-bot merged 1 commit intoppc64le-cloud:mainfrom
mkumatag:fix-deprecated-message-api
Mar 14, 2026
Merged

fix: Replace deprecated ui.Message() with ui.Say()#347
ppc64le-cloud-bot merged 1 commit intoppc64le-cloud:mainfrom
mkumatag:fix-deprecated-message-api

Conversation

@mkumatag
Copy link
Contributor

@mkumatag mkumatag commented Mar 14, 2026

This PR fixes issue 315 by replacing all occurrences of the deprecated ui.Message() API with ui.Say() as per the Packer SDK deprecation notice.

Fixes #315

Changes

  • builder/powervs/step_import_base_image.go: 10 replacements
  • builder/powervs/step_capture_instance.go: 2 replacements
  • builder/powervs/step_create_instance.go: 6 replacements
  • builder/powervs/step_create_network.go: 7 replacements
  • builder/powervs/common/ssh.go: 7 replacements

Total: 32 occurrences replaced

Testing

  • ✅ Build successful: go build . completed without errors
  • ✅ All tests passed: go test ./... -v completed successfully
  • ✅ No remaining ui.Message() calls found in the codebase

Reference

Replaced all occurrences of the deprecated ui.Message() API with
ui.Say() as per the Packer SDK deprecation notice.

Changes:
- builder/powervs/step_import_base_image.go: 10 replacements
- builder/powervs/step_capture_instance.go: 2 replacements
- builder/powervs/step_create_instance.go: 6 replacements
- builder/powervs/step_create_network.go: 7 replacements
- builder/powervs/common/ssh.go: 7 replacements

Total: 32 occurrences replaced

Reference: hashicorp/packer-plugin-sdk#290
@ppc64le-cloud-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mkumatag

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ppc64le-cloud-bot ppc64le-cloud-bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 14, 2026
@mkumatag mkumatag added the lgtm Indicates that a PR is ready to be merged. label Mar 14, 2026
@ppc64le-cloud-bot ppc64le-cloud-bot merged commit 48fbe61 into ppc64le-cloud:main Mar 14, 2026
19 checks passed
@mkumatag mkumatag deleted the fix-deprecated-message-api branch March 14, 2026 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove deprecated Message api

2 participants