Skip to content

Instantly share code, notes, and snippets.

@neilferreira
Created July 11, 2014 03:42
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 neilferreira/0b6c176d8581330b36ed to your computer and use it in GitHub Desktop.
Save neilferreira/0b6c176d8581330b36ed to your computer and use it in GitHub Desktop.
----------
ID: postgres_user_foo
Function: postgres_user.present
Name: foo
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1378, in call
**cdata['kwargs'])
File "/usr/lib/python2.7/dist-packages/salt/states/postgres_user.py", line 173, in present
name, return_password=True, **db_args)
File "/usr/lib/python2.7/dist-packages/salt/modules/postgres.py", line 550, in role_get
return_password=return_password)
File "/usr/lib/python2.7/dist-packages/salt/modules/postgres.py", line 467, in user_list
if ver >= distutils.version.LooseVersion('9.1'):
File "/usr/lib/python2.7/distutils/version.py", line 296, in __cmp__
return cmp(self.version, other.version)
AttributeError: 'NoneType' object has no attribute 'version'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment