Merge "Protect, restore success message reflect async"
This commit is contained in:
@@ -53,7 +53,7 @@ class RestoreCheckpointForm(horizon_forms.SelfHandlingForm):
|
||||
checkpoint_id=data["checkpoint_id"],
|
||||
restore_target=data["restore_target"],
|
||||
parameters=json.loads(data["parameters"]))
|
||||
messages.success(request, _("Checkpoint restored successfully."))
|
||||
messages.success(request, _("Checkpoint restore initiated."))
|
||||
return new_restore
|
||||
except Exception:
|
||||
exceptions.handle(request, _('Unable to restore checkpoint.'))
|
||||
|
||||
@@ -61,7 +61,7 @@ class ProtectNowLink(tables.Action):
|
||||
new_checkpoint = karborclient.checkpoint_create(request,
|
||||
provider_id,
|
||||
datum_id)
|
||||
messages.success(request, _("Protect now successfully."))
|
||||
messages.success(request, _("Plan protection initiated"))
|
||||
return new_checkpoint
|
||||
except Exception:
|
||||
exceptions.handle(request, _('Unable to protect now'))
|
||||
|
||||
Reference in New Issue
Block a user