Skip to content

Instantly share code, notes, and snippets.

@lypanov
Created March 8, 2011 21:51
Show Gist options
  • Save lypanov/861158 to your computer and use it in GitHub Desktop.
Save lypanov/861158 to your computer and use it in GitHub Desktop.
[master rails-quick-start] % python -c "import simplejson as json; from chef import *; autoconfigure(); print json.dumps(dict(DataBagItem('apps', 'radiant')));"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Library/Python/2.6/site-packages/chef/data_bag.py", line 51, in __init__
super(DataBagItem, self).__init__(str(bag)+'/'+name, api=api, skip_load=skip_load)
File "/Library/Python/2.6/site-packages/chef/base.py", line 51, in __init__
data = self.api[self.url]
TypeError: 'NoneType' object is unsubscriptable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment