Traceback (most recent call last):


 "test1.py", line 16, in <module>

print(s + "encode string".encode('utf-8'))
TypeError: Can't convert 'bytes' object to str implicitly


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


 "/usr/lib/python2.7/site-packages/salt/state.py", line 1734, in call

**cdata['kwargs'])


 "/usr/lib/python2.7/site-packages/salt/loader.py", line 1651, in wrapper

return f(*args, **kwargs)


 "/usr/lib/python2.7/site-packages/salt/states/grains.py", line 150, in list_present

if set(value).issubset(set(__salt__['grains.get'](name))):

TypeError: unhashable type: 'dict'
```
