diff --git a/cmd/scw/testdata/test-all-usage-rdb-backup-wait-usage.golden b/cmd/scw/testdata/test-all-usage-rdb-backup-wait-usage.golden index 5dbe8b75d2..0f87be354d 100644 --- a/cmd/scw/testdata/test-all-usage-rdb-backup-wait-usage.golden +++ b/cmd/scw/testdata/test-all-usage-rdb-backup-wait-usage.golden @@ -7,7 +7,7 @@ USAGE: EXAMPLES: Wait for a backup to reach a stable state - scw rdb backup wait + scw rdb backup wait 11111111-1111-1111-1111-111111111111 ARGS: backup-id ID of the backup you want to wait for. diff --git a/internal/namespaces/rdb/v1/custom_backup.go b/internal/namespaces/rdb/v1/custom_backup.go index 0c2d799ca9..617a7e7578 100644 --- a/internal/namespaces/rdb/v1/custom_backup.go +++ b/internal/namespaces/rdb/v1/custom_backup.go @@ -35,8 +35,8 @@ var ( ) type backupWaitRequest struct { - DatabaseBackupID string - Region scw.Region + BackupID string + Region scw.Region } func backupWaitCommand() *core.Command { @@ -50,7 +50,7 @@ func backupWaitCommand() *core.Command { Run: func(ctx context.Context, argsI interface{}) (i interface{}, err error) { api := rdb.NewAPI(core.ExtractClient(ctx)) return api.WaitForDatabaseBackup(&rdb.WaitForDatabaseBackupRequest{ - DatabaseBackupID: argsI.(*backupWaitRequest).DatabaseBackupID, + DatabaseBackupID: argsI.(*backupWaitRequest).BackupID, Region: argsI.(*backupWaitRequest).Region, Timeout: scw.TimeDurationPtr(backupActionTimeout), RetryInterval: core.DefaultRetryInterval,