Skip to content

Commit 33ef472

Browse files
committed
Print string representation of preload feature
Concatenating empty ('') value is lost on translation. For: QubesOS/qubes-issues#1512
1 parent 276dcf6 commit 33ef472

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

qubes/vm/adminvm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def on_feature_set_preload_dispvm_max(
393393
return
394394
if not (appvm := getattr(self.app, "default_dispvm", None)):
395395
return
396-
reason = "global feature was set to " + str(value)
396+
reason = "global feature was set to " + repr(value)
397397
asyncio.ensure_future(
398398
appvm.fire_event_async("domain-preload-dispvm-start", reason=reason)
399399
)

qubes/vm/mix/dvmtemplate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def on_feature_set_preload_dispvm_max(
143143
return
144144
if self.is_global_preload_set():
145145
return
146-
reason = "local feature was set to " + str(value)
146+
reason = "local feature was set to " + repr(value)
147147
asyncio.ensure_future(
148148
self.fire_event_async("domain-preload-dispvm-start", reason=reason)
149149
)

0 commit comments

Comments
 (0)