samba-tool drs showrepl: generalise the way output mode is chosen
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 9 Mar 2018 03:16:23 +0000 (16:16 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 10 Jun 2018 17:02:19 +0000 (19:02 +0200)
commit99aabf436d62eef990990e6edf95b117bebe0228
treeb451d30465a0ef6a5bfba8cfff547af7c185a156
parent92fff57f0c269ff154adc589f395d8328b210e88
samba-tool drs showrepl: generalise the way output mode is chosen

We have a couple more output modes coming along, so it makes senses to
untangle .run() into a number of independent sub-methods.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/drs.py