mirror of
https://github.com/certbot/certbot.git
synced 2026-07-30 18:04:31 +02:00
Remove the test path from augeas even if failing
This commit is contained in:
@@ -184,6 +184,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
|||||||
matches = self.aug.match(
|
matches = self.aug.match(
|
||||||
"/test//*[self::arg=~regexp('argument', 'i')]")
|
"/test//*[self::arg=~regexp('argument', 'i')]")
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
|
self.aug.remove("/test/path")
|
||||||
return None
|
return None
|
||||||
self.aug.remove("/test/path")
|
self.aug.remove("/test/path")
|
||||||
return matches
|
return matches
|
||||||
|
|||||||
Reference in New Issue
Block a user