diff --git a/virt-manager.changes b/virt-manager.changes index 5443fa7c..00c002a3 100644 --- a/virt-manager.changes +++ b/virt-manager.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Jan 2 12:45:56 MST 2018 - carnold@suse.com + +- bsc#1074056 - [build 408.1]virt-install tool reports "TypeError: + must use keyword argument for key function" when parsing vnc + virtinst-python2-to-python3-conversion.patch + ------------------------------------------------------------------- Tue Jan 2 08:51:45 UTC 2018 - cbosdonnat@suse.com diff --git a/virtinst-python2-to-python3-conversion.patch b/virtinst-python2-to-python3-conversion.patch index 407b588a..b622eddf 100644 --- a/virtinst-python2-to-python3-conversion.patch +++ b/virtinst-python2-to-python3-conversion.patch @@ -34,12 +34,20 @@ Index: virt-manager-1.4.3/virtinst/hostkeymap.py =================================================================== --- virt-manager-1.4.3.orig/virtinst/hostkeymap.py +++ virt-manager-1.4.3/virtinst/hostkeymap.py -@@ -202,7 +202,7 @@ def sanitize_keymap(kt): +@@ -20,6 +20,7 @@ + import logging + import os + import re ++import functools + + + _ETC_VCONSOLE = "/etc/vconsole.conf" +@@ -202,7 +203,7 @@ def sanitize_keymap(kt): return len(b) - len(a) clean_kt = kt.replace("-", "").replace("_", "") - sorted_keys = sorted(keytable.keys(), len_cmp) -+ sorted_keys = sorted(list(keytable.keys()), len_cmp) ++ sorted_keys = sorted(list(keytable.keys()), key=functools.cmp_to_key(len_cmp)) for key in sorted_keys: origkey = key