netcmd: Small backup refactor to avoid compatiblity problems
authorTim Beale <timbeale@catalyst.net.nz>
Thu, 8 Nov 2018 04:07:08 +0000 (17:07 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 20 Nov 2018 00:33:33 +0000 (01:33 +0100)
commit5ca2726a402f061a73ab7b52064d8b1e4028caca
tree95cfb05e1372c89dc088117a2c54b9963d686ef1
parent6e5ebbfb65344661ae4bcee02abc9143fb61bb84
netcmd: Small backup refactor to avoid compatiblity problems

It will be easy to forget that the backupType marker doesn't exist on
v4.9. However, this seems like a dumb reason not to support v4.9
backup-files. Add a wrapper function to avoid potential problems
cropping up in future.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/domain_backup.py