summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-01-28 13:39:07 -0800
committerTim Smith <tsmith84@gmail.com>2020-04-20 19:48:54 -0700
commite94a09ecf0b28c6cf0f8b959934698d4255ffddc (patch)
tree77c933f1b37eebff9c2b214f934bc176f65bd7f2
parentfe39d9a1cfc22ec09d0112ee57e6300122d95627 (diff)
downloadchef-e94a09ecf0b28c6cf0f8b959934698d4255ffddc.tar.gz
Sort the list of encryptor keys to we don't have to resort it
We check for see if we're encrypted was sorting this every time. Let's make sure we start sorted to avoid unnecessary work. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/encrypted_data_bag_item/encryptor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/encrypted_data_bag_item/encryptor.rb b/lib/chef/encrypted_data_bag_item/encryptor.rb
index 7125247152..4faed6a2a3 100644
--- a/lib/chef/encrypted_data_bag_item/encryptor.rb
+++ b/lib/chef/encrypted_data_bag_item/encryptor.rb
@@ -143,7 +143,7 @@ class Chef::EncryptedDataBagItem
end
def self.encryptor_keys
- %w{ encrypted_data iv version cipher auth_tag }
+ %w{ auth_tag cipher encrypted_data iv version }
end
end
end