provision: Small refactor to host-IP logic
authorTim Beale <timbeale@catalyst.net.nz>
Sun, 10 Jun 2018 21:14:06 +0000 (09:14 +1200)
committerGary Lockyer <gary@samba.org>
Tue, 3 Jul 2018 03:24:14 +0000 (05:24 +0200)
commitb2dc8e5d58e66b88b9e43cf628ce8b43639d7fdb
tree046002ce71efa4110d01a497c34fc767fec0f489
parent22208f52e6096fbe9413b8ff339d9446851e0874
provision: Small refactor to host-IP logic

Split out the code that determines the host-IP of the new server into
separate functions. This will allow us to re-use the same logic in the
backup/restore case.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
python/samba/provision/__init__.py