ctdb-tests: Clean up nodes and public address file setup
authorMartin Schwenke <martin@meltin.net>
Thu, 22 Feb 2018 09:24:20 +0000 (20:24 +1100)
committerMartin Schwenke <martins@samba.org>
Fri, 9 Mar 2018 06:08:25 +0000 (07:08 +0100)
commit670668f4c1598cffe5db51e53f81a0fff389495b
treef611fcd0b4175e9766bc817da4e1623593d54a2e
parent2b09dc9d8e130d4a5b3e8b7df61507ba1da7c6e8
ctdb-tests: Clean up nodes and public address file setup

Untangle a single loop into two separate, clear functions.  Create a
separate, empty file for the node with no public IPs instead of
pointing the configuration at /dev/null.

Leave the indentation in setup_ctdb() in the old style to make this
commit comprehensible.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/simple/scripts/local_daemons.bash