Merge pull request #5 from miska/master

Fix Python 3 compatibility
This commit is contained in:
Akmod 2021-03-10 04:05:47 -07:00 committed by GitHub
commit 128327ed5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class GrainMaker:
def _parseGrainValues(self, grain):
# Parses individual grains and their values passed from the pillar
grainKey = grain.keys()[0]
grainKey = next(iter(grain.keys()))
if grain[grainKey]:
for value in grain[grainKey]:
self._addToGrains(grain, grainKey, value)