Adjust backup NewBackup class (#130976)

This commit is contained in:
Erik Montnemery
2024-11-19 21:52:41 +01:00
committed by GitHub
parent db76939114
commit b447476bcc
2 changed files with 7 additions and 7 deletions

View File

@@ -51,7 +51,7 @@ from .util import read_backup
class NewBackup:
"""New backup class."""
backup_id: str
backup_job_id: str
@dataclass(slots=True)
@@ -563,7 +563,7 @@ class CoreBackupReaderWriter(BackupReaderWriter):
eager_start=False, # To ensure the task is not started before we return
)
return (NewBackup(backup_id=backup_id), backup_task)
return (NewBackup(backup_job_id=backup_id), backup_task)
async def _async_create_backup(
self,

View File

@@ -967,7 +967,7 @@
dict({
'id': 1,
'result': dict({
'backup_id': '27f5c632',
'backup_job_id': '27f5c632',
}),
'success': True,
'type': 'result',
@@ -988,7 +988,7 @@
dict({
'id': 1,
'result': dict({
'backup_id': '27f5c632',
'backup_job_id': '27f5c632',
}),
'success': True,
'type': 'result',
@@ -1009,7 +1009,7 @@
dict({
'id': 1,
'result': dict({
'backup_id': '27f5c632',
'backup_job_id': '27f5c632',
}),
'success': True,
'type': 'result',
@@ -1030,7 +1030,7 @@
dict({
'id': 1,
'result': dict({
'backup_id': 'abc123',
'backup_job_id': 'abc123',
}),
'success': True,
'type': 'result',
@@ -1040,7 +1040,7 @@
dict({
'id': 1,
'result': dict({
'backup_id': 'abc123',
'backup_job_id': 'abc123',
}),
'success': True,
'type': 'result',