mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
[fx2 grains] Grains functions should return dictionaries
This commit is contained in:
parent
af297bb0ae
commit
022cf5d230
1 changed files with 2 additions and 2 deletions
|
@ -73,9 +73,9 @@ def location():
|
|||
GRAINS_CACHE.update(_grains())
|
||||
|
||||
try:
|
||||
return GRAINS_CACHE.get('Chassis Information').get('Chassis Location')
|
||||
return {'location': GRAINS_CACHE.get('Chassis Information').get('Chassis Location')}
|
||||
except AttributeError:
|
||||
return "Unknown"
|
||||
return {'location': 'Unknown'}
|
||||
|
||||
|
||||
def os_family():
|
||||
|
|
Loading…
Add table
Reference in a new issue