Skip to content
This repository was archived by the owner on May 9, 2020. It is now read-only.

Commit f3413df

Browse files
committed
Remove manuall deleting encryptors/decryptors
1 parent 41ca735 commit f3413df

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

chef/encrypted_data_bag_item.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ def encrypt(self):
6161
if self.encrypted_data is None:
6262
data = json.dumps({'json_wrapper': self.data})
6363
self.encrypted_data = self.encryptor.encrypt(data)
64-
del self.encryptor
6564
return self.encrypted_data
6665

6766
def to_dict(self):
@@ -111,7 +110,6 @@ def __init__(self, key, data, iv):
111110

112111
def decrypt(self):
113112
value = self.decryptor.decrypt(self.data)
114-
del self.decryptor
115113
# After decryption we should get a string with JSON
116114
try:
117115
value = json.loads(value)

0 commit comments

Comments
 (0)