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


Chronological Thread 
  • From: Akzhan Abdulin < >
  • To:
  • Subject: [chef] Re: ERROR: RuntimeError: Please set EDITOR environment variable
  • Date: Sat, 3 Nov 2012 18:24:19 +0400

try to

export EDITOR=vim

2012/11/3 Sachin Sagar Rai < " target="_blank"> >
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.

§