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