python/samba/netcmd: PY3 fix CI error for samba.tests.samba_tool.help
authorNoel Power <noel.power@suse.com>
Wed, 17 Oct 2018 17:06:34 +0000 (18:06 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 23 Oct 2018 03:50:29 +0000 (05:50 +0200)
commit25b16fa0649579f17789e4f06e40b840d77942aa
tree06748077cb04de2b830b1490c3e25ef0e9af3a10
parentc11e90a123fce5cf8d29d59ae96dfc84d5ce0d04
python/samba/netcmd: PY3 fix CI error for samba.tests.samba_tool.help

Strangely the test was failing on CI only, looks like there is an
issue with order of elements returned from dict.items() with python3.4
(version of python in CI docker instance) and python3.6 (version on my
development machine). Changed code to sort the keys so order of help
printed out should be the same for each invocation.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/__init__.py