diff --git a/salt/output.py b/salt/output.py index 0c5110a470..2db1a2636b 100644 --- a/salt/output.py +++ b/salt/output.py @@ -136,8 +136,12 @@ class TxtOutputter(Outputter): if hasattr(data, "keys"): for key in data.keys(): value = data[key] - for line in value.split('\n'): - print "{0}: {1}".format(key, line) + # Don't blow up on non-strings + try: + for line in value.split('\n'): + print "{0}: {1}".format(key, line) + except AttributeError: + print "key: %s" % value else: # For non-dictionary data, just use print RawOutputter()(data)