Skip to content

fix: Fix value for backup unit 'login' attribute#911

Merged
adeatcu-ionos merged 1 commit intomasterfrom
fix-computed-value-backup-unit-login
Dec 5, 2025
Merged

fix: Fix value for backup unit 'login' attribute#911
adeatcu-ionos merged 1 commit intomasterfrom
fix-computed-value-backup-unit-login

Conversation

@adeatcu-ionos
Copy link
Copy Markdown
Contributor

What does this fix or implement?

Fixes #898

Checklist

  • PR name added as appropriate (e.g. feat:/fix:/doc:/test:/refactor:)
  • Tests added or updated
  • Documentation updated
  • Changelog updated and version incremented (label: upcoming release)
  • Github Issue linked if any
  • Jira task updated

@adeatcu-ionos adeatcu-ionos requested review from a team, avirtopeanu-ionos, cbeti-ionos, Copilot, cristiGuranIonos, glimberea, mimihalescu and rmocanu-ionos and removed request for a team December 3, 2025 10:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the format of the login attribute value for the backup unit resource by swapping the order of contract number and backup unit name, and adds a null safety check. The fix addresses issue #898 where the login format was incorrect.

Key changes:

  • Corrected login format from {name}-{contract_number} to {contract_number}-{name}
  • Added null safety check for Properties field before accessing ContractNumber
  • Added test validation to ensure login attribute is set

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
ionoscloud/resource_backup_unit.go Fixed login value format and added null safety check for Properties
ionoscloud/resource_backup_unit_test.go Added test assertion to verify login attribute is set
CHANGELOG.md Documented the login value computation fix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@adeatcu-ionos adeatcu-ionos force-pushed the fix-computed-value-backup-unit-login branch from ea6c0c6 to e04657d Compare December 3, 2025 10:57
@adeatcu-ionos adeatcu-ionos force-pushed the fix-computed-value-backup-unit-login branch from e04657d to ab08404 Compare December 4, 2025 09:40
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Dec 4, 2025

@cristiGuranIonos
Copy link
Copy Markdown
Member

hopefully no one relies on the old format

@adeatcu-ionos adeatcu-ionos merged commit 5cc539e into master Dec 5, 2025
8 checks passed
@adeatcu-ionos adeatcu-ionos deleted the fix-computed-value-backup-unit-login branch December 5, 2025 05:52
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.

Output format of ionoscloud_backup_unit login is wrong

3 participants