
Comment: An exception occurred in this state: Traceback (most recent call last):

 "/usr/lib/python2.7/dist-packages/salt/state.py", line 1624, in call
**cdata['kwargs'])

 "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1491, in wrapper
return f(*args, **kwargs)

 "/usr/lib/python2.7/dist-packages/salt/states/file.py", line 2560, in line
backup=backup, quiet=quiet, indent=indent)

 "/usr/lib/python2.7/dist-packages/salt/modules/file.py", line 1499, in line
for line in body.split(os.linesep)])
TypeError: expected a character buffer object```

Traceback (most recent call last):

 "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1042, in _execute
getattr(self, self.request.method.lower())(*args, **kwargs)

 "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1809, in wrapper
return method(self, *args, **kwargs)

 "/usr/local/lib/python2.7/dist-packages/flower/api/tasks.py", line 60, in get
self.write(response)

 "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 493, in write
chunk = escape.json_encode(chunk)

 "/usr/local/lib/python2.7/dist-packages/tornado/escape.py", line 90, in json_encode
return _json_encode(recursive_unicode(value)).replace("</", "<\\/")

 "/usr/lib/python2.7/json/__init__.py", line 231, in dumps
return _default_encoder.encode(obj)

 "/usr/lib/python2.7/json/encoder.py", line 201, in encode
chunks = self.iterencode(o, _one_shot=True)

 "/usr/lib/python2.7/json/encoder.py", line 264, in iterencode
return _iterencode(o, 0)

 "/usr/lib/python2.7/json/encoder.py", line 178, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: ZeroDivisionError('integer division or modulo by zero',) is not JSON serializable