This is related to #21 but I've found this to be a broader issue in that any error condition on a set operation will still change the config file even though it "failed". This seems to not be a good behavior for the faucetagent to have? Perhaps it should copy the original faucet.yaml before applying set, and if it returns a failure then it sets it back to what the original faucet.yaml was?
This is especially bad in cases where the faucet.yaml being applied is valid, but there was a "failure" in the set operation for some other reason and Faucet is now running that newly applied config but the end user of faucetagent was told it failed.
This is related to #21 but I've found this to be a broader issue in that any error condition on a
setoperation will still change the config file even though it "failed". This seems to not be a good behavior for the faucetagent to have? Perhaps it should copy the originalfaucet.yamlbefore applying set, and if it returns a failure then it sets it back to what the originalfaucet.yamlwas?This is especially bad in cases where the
faucet.yamlbeing applied is valid, but there was a "failure" in thesetoperation for some other reason and Faucet is now running that newly applied config but the end user of faucetagent was told it failed.