Skip to content

Commit

Permalink
use symbols instead of string for attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Allan committed Jun 5, 2014
1 parent 07a4a60 commit 082f105
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@
default[:nexus][:cli][:retries] = 3
default[:nexus][:cli][:retry_delay] = 10

default[:nexus]['use_chef_vault'] = false
default[:nexus][:use_chef_vault] = false
2 changes: 1 addition & 1 deletion libraries/chef_nexus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def encrypted_data_bag_for(node, data_bag)
end

def encrypted_data_bag_item(node, data_bag, data_bag_item)
if node[:nexus]['use_chef_vault']
if node[:nexus][:use_chef_vault]
item = ChefVault::Item.load(data_bag, data_bag_item)
else
item = Chef::EncryptedDataBagItem.load(data_bag, data_bag_item)
Expand Down
2 changes: 1 addition & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# limitations under the License.
#

if node[:nexus]['use_chef_vault']
if node[:nexus][:use_chef_vault]
chef_gem "chef-vault"
require 'chef-vault'
end
Expand Down

0 comments on commit 082f105

Please sign in to comment.