From a89647c462c5368ec0d881988baaa76a3100163b Mon Sep 17 00:00:00 2001 From: "Manuel Amador (Rudd-O)" Date: Sun, 21 Aug 2022 01:37:05 +0000 Subject: [PATCH] Fix #10 --- connection_plugins/qubes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connection_plugins/qubes.py b/connection_plugins/qubes.py index 7d74af8..a425210 100644 --- a/connection_plugins/qubes.py +++ b/connection_plugins/qubes.py @@ -255,7 +255,7 @@ class Connection(ConnectionBase): def set_options(self, task_keys=None, var_options=None, direct=None): super(Connection, self).set_options(task_keys=task_keys, var_options=var_options, direct=direct) # FIXME HORRIBLE WORKAROUND FIXME - if task_keys['delegate_to'] and 'management_proxy' in self._options: + if task_keys and task_keys['delegate_to'] and self._options and 'management_proxy' in self._options: self._options['management_proxy'] = '' def __init__(self, play_context, new_stdin, *args, **kwargs):