booth
booth copied to clipboard
Fix a segfault + related refactoring
Note that Travis CI runs are currently borked. There must have been a change on their side that is causing this, I can't even successfully finish what was once passing:
- original: https://travis-ci.org/ClusterLabs/booth/builds/144114208
- my test: https://travis-ci.org/jnpkrn/booth/builds/159707146
May they have mangled with 127.0.0.1
address resolution?
There was an issue with last commit in not resolving local
even if it is relied upon later on (hence introducing similar issue this PR aims to solve in the first place). That should be fixed now.
Well, haven't read correctly, it was actually 127.0.1.1
and the proposed workaround for the indeed changed Travis CI image is #51. You may pull that first and then rerun tests for this PR.
On Tue, Sep 13, 2016 at 12:58:56PM -0700, Jan Pokorný wrote:
- Refactor: call find_site_by_name just once, up the stream
I did consider this before, but decided against refactoring. The new code which ends in setup_config() is somewhat unwieldy and difficult to grasp. Anyway, if you're bothered by this, a macro of a "if (!find_site_by_name(...)) { ... }" would probably be a better option.