From d082bad4cea80959cb0e0554c3683ed7595da1ef Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Wed, 29 Apr 2020 14:51:25 +1200 Subject: [PATCH] have a netplan failure crash a non-interactive install --- subiquity/controllers/network.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subiquity/controllers/network.py b/subiquity/controllers/network.py index 65816c0a..d0ab9335 100644 --- a/subiquity/controllers/network.py +++ b/subiquity/controllers/network.py @@ -96,6 +96,8 @@ class NetworkController(NetworkController, SubiquityController): self.app.make_apport_report( ErrorReportKind.NETWORK_FAIL, "applying network", interrupt=True) + if not self.interactive(): + raise def done(self): self.configured()