summaryrefslogtreecommitdiff
path: root/lib/chef/knife/bootstrap.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-02-13 15:14:27 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2015-02-13 15:14:27 -0800
commit621bec9e651e89ccdb4b627111a4e1e62b69acda (patch)
tree8319461af373909755a882a7046e6ac8bb05b54d /lib/chef/knife/bootstrap.rb
parente150d7dc2c781e230d46f8a23f2c8e17e9de0042 (diff)
downloadchef-621bec9e651e89ccdb4b627111a4e1e62b69acda.tar.gz
fixed a bug in --bootstrap-vault-item
Diffstat (limited to 'lib/chef/knife/bootstrap.rb')
-rw-r--r--lib/chef/knife/bootstrap.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb
index 7fcdc0820f..f23c15fa70 100644
--- a/lib/chef/knife/bootstrap.rb
+++ b/lib/chef/knife/bootstrap.rb
@@ -212,9 +212,10 @@ class Chef
:description => 'A single vault and item to update as "vault:item"',
:proc => Proc.new { |i|
(vault, item) = i.split(/:/)
- bootstrap_vault_item ||= {}
- bootstrap_vault_item[vault] ||= []
- bootstrap_vault_item[vault].push(item)
+ Chef::Config[:knife][:bootstrap_vault_item] ||= {}
+ Chef::Config[:knife][:bootstrap_vault_item][vault] ||= []
+ Chef::Config[:knife][:bootstrap_vault_item][vault].push(item)
+ Chef::Config[:knife][:bootstrap_vault_item]
}
def initialize(argv=[])