We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72e1c5a commit 21d4be8Copy full SHA for 21d4be8
1 file changed
qubesadmin/app.py
@@ -879,15 +879,15 @@ def qubesd_call(
879
raise qubesadmin.exc.QubesDaemonCommunicationError(
880
"{} not found".format(method_path)
881
)
882
- assert arg is not None
883
assert dest is not None
884
command = [
885
"env",
886
"QREXEC_REMOTE_DOMAIN=dom0",
887
"QREXEC_REQUESTED_TARGET=" + dest,
888
method_path,
889
- arg,
890
]
+ if arg is not None:
+ command.append(arg)
891
if os.getuid() != 0:
892
command.insert(0, "sudo")
893
(_, stdout, _) = self._call_with_stream(
0 commit comments