Skip to content

Instantly share code, notes, and snippets.

@brianz
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianz/a27bf7ec3cf3b15b68f0 to your computer and use it in GitHub Desktop.
Save brianz/a27bf7ec3cf3b15b68f0 to your computer and use it in GitHub Desktop.
ID: replicator_user
Function: postgres_user.present
Name: replicator
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/salt/state.py", line 1533, in call
**cdata['kwargs'])
File "/usr/lib64/python2.6/contextlib.py", line 34, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python2.6/site-packages/salt/utils/context.py", line 41, in func_globals_inject
yield
File "/usr/lib/python2.6/site-packages/salt/state.py", line 1533, in call
**cdata['kwargs'])
File "/usr/lib/python2.6/site-packages/salt/states/postgres_user.py", line 211, in present
and user_attr['replication'] != replication
TypeError: 'bool' object is unsubscriptable
Started: 16:17:15.887436
Duration: 49.838 ms
Changes:
replicator_user:
postgres_user.present:
- name: replicator
- password: R3plicationF1nally
- replication: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment