{"action":"opened","issue":{"url":"https://api.github.com/repos/letsencrypt/letsencrypt/issues/2265","labels_url":"https://api.github.com/repos/letsencrypt/letsencrypt/issues/2265/labels{/name}","comments_url":"https://api.github.com/repos/letsencrypt/letsencrypt/issues/2265/comments","events_url":"https://api.github.com/repos/letsencrypt/letsencrypt/issues/2265/events","html_url":"https://github.com/letsencrypt/letsencrypt/issues/2265","id":128234721,"number":2265,"title":"aug.match throws out unsaved augeas changes - temp save before calling?","user":{"login":"SwartzCr","id":649860,"avatar_url":"https://avatars.githubusercontent.com/u/649860?v=3","gravatar_id":"","url":"https://api.github.com/users/SwartzCr","html_url":"https://github.com/SwartzCr","followers_url":"https://api.github.com/users/SwartzCr/followers","following_url":"https://api.github.com/users/SwartzCr/following{/other_user}","gists_url":"https://api.github.com/users/SwartzCr/gists{/gist_id}","starred_url":"https://api.github.com/users/SwartzCr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwartzCr/subscriptions","organizations_url":"https://api.github.com/users/SwartzCr/orgs","repos_url":"https://api.github.com/users/SwartzCr/repos","events_url":"https://api.github.com/users/SwartzCr/events{/privacy}","received_events_url":"https://api.github.com/users/SwartzCr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-22T20:08:48Z","updated_at":"2016-01-22T20:08:48Z","closed_at":null,"body":"as seen in #2228 we are having some errors where directives are added and then lost before saving due to aug.match being called. One place where aug.match is called is in configurator.find_dir()\r\n\r\nThis is pretty unexpected behavior, and will likely cause problems down the line. It would be nice if before aug.match is called we check to see if there are unsaved changes and save them.\r\n\r\nI've also opened an issue with python-augeas about this behavior: https://github.com/hercules-team/python-augeas/issues/15"}}