[chef] ERROR: RuntimeError: Please set EDITOR environment variable


Chronological Thread 
  • From: Sachin Sagar Rai < >
  • To: " " < >
  • Subject: [chef] ERROR: RuntimeError: Please set EDITOR environment variable
  • Date: Sat, 3 Nov 2012 20:08:00 +0545

I've the latest chef 10.16.2

When I issue the following cmd:

knife data bag create db creds --secret-file ~/.chef/encrypted_data_bag_secret

opens the vim and I write some configs and when I try to :wq (write n exit) it says

ERROR: RuntimeError: Please set EDITOR environment variable

I've even set the EDITOR var inline as well

EDITOR=/usr/bin/vim knife data bag create db creds --secret-file ~/.chef/encrypted_data_bag_secret

Still the same error.

There is a issue filed and which says its been resolved at http://tickets.opscode.com/browse/CHEF-1340

But why I'm getting this error?

-------------------------------------------
@millisami
~ Sachin Sagar Rai
Ruby on Rails Developer
http://tfm.com.np
http://nepalonrails.tumblr.com
Sent with Sparrow




Archive powered by MHonArc 2.6.16.

§