Fix ValueError when selection contains a colon

This commit is contained in:
Pierre-Louis Bonicoli 2014-03-23 03:35:10 +01:00
parent 3b710005ad
commit 9a140881be

View file

@ -96,7 +96,7 @@ def get_selections(module, pkg):
selections = {} selections = {}
for line in out.splitlines(): for line in out.splitlines():
(key, value) = line.split(':') (key, value) = line.split(':', 1)
selections[ key.strip('*').strip() ] = value.strip() selections[ key.strip('*').strip() ] = value.strip()
return selections return selections