diff options
author | John Keiser <john@johnkeiser.com> | 2015-09-29 15:52:51 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-09-29 15:52:51 -0700 |
commit | f0ba6e88eff2a0a1cc87a0094fbdb75a325a2ea9 (patch) | |
tree | 5d6344abe4e90eebba010bebe07ff3e5fcb668c3 /lib/chef_zero | |
parent | c1fbbe7bc12b4a778cf63de083bf0d69c90bf579 (diff) | |
download | chef-zero-f0ba6e88eff2a0a1cc87a0094fbdb75a325a2ea9.tar.gz |
Translate admin="true" to admin=true
Diffstat (limited to 'lib/chef_zero')
-rw-r--r-- | lib/chef_zero/chef_data/data_normalizer.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef_zero/chef_data/data_normalizer.rb b/lib/chef_zero/chef_data/data_normalizer.rb index 404db03..2dff91e 100644 --- a/lib/chef_zero/chef_data/data_normalizer.rb +++ b/lib/chef_zero/chef_data/data_normalizer.rb @@ -17,6 +17,7 @@ module ChefZero def self.normalize_client(client, name, orgname = nil) client['name'] ||= name client['clientname'] ||= name + client['admin'] = !!client['admin'] if client.has_key?('admin') client['public_key'] ||= PUBLIC_KEY client['orgname'] ||= orgname client['validator'] ||= false |