- From: Jens Skott <
>
- To: "
" <
>
- Subject: [chef] Re: Re: Re: ERROR: RuntimeError: Please set EDITOR environment variable
- Date: Sat, 3 Nov 2012 15:29:29 +0100
The EDITOR is an unix/linux eviromental variable. If you echo $EDITOR in bash it should say vim. Else type the export command on one line then the knife command on the next.
Mobile Jens 3 nov 2012 kl. 15:27 skrev Sachin Sagar Rai <
">
>:
export EDITOR=vim millisami at millisami in ~/chef-app ± knife data bag create db creds --secret-file ~/.chef/encrypted_data_bag_secret
Data bag db already exists ERROR: RuntimeError: Please set EDITOR environment variable
Even tried inline:
± EDITOR=vim knife data bag create db creds --secret-file ~/.chef/encrypted_data_bag_secret
Data bag db already exists ERROR: RuntimeError: Please set EDITOR environment variable
-------------------------------------------
On Saturday, November 3, 2012 at 8:09 PM, Akzhan Abdulin wrote:
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.
But why I'm getting this error?
-------------------------------------------
|
Archive powered by MHonArc 2.6.16.