mirror of
https://github.com/saltstack-formulas/reverse-grains-formula.git
synced 2025-03-21 05:51:54 +01:00
commit
128327ed5b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user