Atalanta/cucumber-chef — pull request #61 by 4eek (2012-07-19 18:05:14+00:00)
Title: Fixed conflicting knife -s param

When trying to use encrypted data bag secret file as follows:

$ cc-knife data bag from file api data_bags/api/repo.json --secret-file "keys/encrypted_data_bag_secret"

I was getting...

cc-knife v2.0.1.pre
/usr/bin/env knife data bag from file api data_bags/api/repo.json --secret-file keys/encrypted_data_bag_secret -s http://XXX.XXX.XXX.XXX:4000 -c //chef-repo/.cucumber-chef/knife.rb 2>&1
FATAL: please specify only one of --secret, --secret-file

This was due to the shortened form of both "--secret" and "--server-url" of knife and its "data bag from file" subcommand being "-s".

Using the full param name fixes this.