From 5a7abd99b71e43b39577d354be1924c1ca9cd477 Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Fri, 13 Dec 2019 10:03:46 +1300 Subject: [PATCH] only run network answers once --- subiquitycore/controllers/network.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subiquitycore/controllers/network.py b/subiquitycore/controllers/network.py index 70398320..e5a11d75 100644 --- a/subiquitycore/controllers/network.py +++ b/subiquitycore/controllers/network.py @@ -400,9 +400,9 @@ class NetworkController(BaseController): if self.answers.get('accept-default', False): self.done() elif self.answers.get('actions', False): - self._run_iterator( - self._run_actions( - self.answers['actions'])) + actions = self.answers['actions'] + self.answers.clear() + self._run_iterator(self._run_actions(actions)) if not dhcp_device_versions: return