Need to strip values separated

This commit is contained in:
Thiago Kenji Okada 2017-01-14 12:14:02 -02:00 committed by enkore
parent 53b49a4fbd
commit a0082fb3b1

View File

@ -43,8 +43,8 @@ class RedshiftController(threading.Thread):
"""Convert output to key value pairs"""
try:
key, value = line.strip().split(":")
self.update_value(key, value)
key, value = line.split(":")
self.update_value(key.strip(), value.strip())
except ValueError:
pass