1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-24 19:22:07 +03:00

Remove the test path from augeas even if failing

This commit is contained in:
Joona Hoikkala
2016-01-14 00:23:45 +02:00
parent 30ad7dce9f
commit 7d51480c4d

View File

@@ -184,6 +184,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
matches = self.aug.match(
"/test//*[self::arg=~regexp('argument', 'i')]")
except RuntimeError:
self.aug.remove("/test/path")
return None
self.aug.remove("/test/path")
return matches