diff --git a/instances/jobs.py b/instances/jobs.py index 8ca7a297..3842d1ab 100644 --- a/instances/jobs.py +++ b/instances/jobs.py @@ -533,7 +533,7 @@ class RevertSnapshot(Kind): # a revert gives the VM the host devices it had then: not one given since to another VM has_hostdevs, definitions = _snapshot_definitions(proxy, op.params) if has_hostdevs: - check_hostdevs(proxy, proxy.instance.name(), definitions) + check_hostdevs(proxy, proxy.instance.name(), definitions, restore=True) def run(self, op, ctx): proxy = _proxy(_instance(op.params["instance"])) diff --git a/instances/templates/instances/host_devices_form.html b/instances/templates/instances/host_devices_form.html index 51ada794..6d7bfb4d 100644 --- a/instances/templates/instances/host_devices_form.html +++ b/instances/templates/instances/host_devices_form.html @@ -4,11 +4,14 @@ {% if error %}