Skip to content

Instantly share code, notes, and snippets.

@pduersteler
Created February 4, 2015 12:32
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 pduersteler/d3def5f4c8ac698d063e to your computer and use it in GitHub Desktop.
Save pduersteler/d3def5f4c8ac698d063e to your computer and use it in GitHub Desktop.
----------
ID: testquota
Function: quota.mode
Name: /
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 1529, in call
**cdata['kwargs'])
File "/usr/lib/python2.7/dist-packages/salt/states/quota.py", line 44, in mode
if __salt__['quota.get_mode'](name)[name][quotatype] == fun:
TypeError: string indices must be integers, not str
Started: 13:31:39.176776
Duration: 11.051 ms
Changes:
quota:
pkg.installed:
- pkgs:
- quota
- quotatool
testquota:
quota.mode:
- name: /
- mode: on
- quotatype: user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment