tobami / littlechef

Cook with Chef without a Chef Server
Apache License 2.0
473 stars 70 forks source link

fix command currently broken on master #172

Closed hojerst closed 11 years ago

hojerst commented 11 years ago

The fix command seems broken after the recent merge of pullrequest #170

invoking "fix -l" will issue a error message about a missing "args.version" property.

tobami commented 11 years ago

Can you please paste the actual error message?

hojerst commented 11 years ago

Just for clarity how i installed littlechef (on MacOS X 10.8.4):

# commit 87346e5db6302fad0085e56b53857cb599c57b01
$ git clone git@github.com:tobami/littlechef.git
$ cd littlechef
$ sudo python setup.py install
$ fix -l
Traceback (most recent call last):
  File "/usr/local/bin/fix", line 5, in <module>
    pkg_resources.run_script('littlechef==1.5.2', 'fix')
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 489, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 1207, in run_script
    execfile(script_filename, namespace, namespace)
  File "/Library/Python/2.7/site-packages/littlechef-1.5.2-py2.7.egg/EGG-INFO/scripts/fix", line 108, in <module>
    if args.version:
AttributeError: 'tuple' object has no attribute 'version'
# within kitchen
$ fix list_roles
usage: fix [-h] [-v] [-l] [-y] [--no-report] [--why-run] [-V] [-d]
           [-e ENVIRONMENT] [-c CONCURRENCY]
fix: error: unrecognized arguments: list_roles

commit 66a7ac65be71b41bff98417ff70c7d492c610a18 (release 1.5.2) works as expected running the commands above.

tobami commented 11 years ago

Closed by #174

tobami commented 11 years ago

@hojerst thanks for reporting. This should be fixed now.