Skip to content

Commit

Permalink
fix encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
bernard357 committed May 31, 2016
1 parent d7b8952 commit 4973acf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plumbery/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,11 @@ def set_fittings(self, plan=None):

if isinstance(plan, dict):
documents = [plan]
self.secretsId = MD5.new(str(plan.encode('utf-8'))).hexdigest()
self.secretsId = MD5.new(str(plan).encode('utf-8')).hexdigest()

elif isinstance(plan, list):
documents = plan
self.secretsId = MD5.new(str(plan.encode('utf-8'))).hexdigest()
self.secretsId = MD5.new(str(plan).encode('utf-8')).hexdigest()

else:
documents = list(yaml.load_all(plan))
Expand Down

0 comments on commit 4973acf

Please sign in to comment.