Skip to content

Commit

Permalink
Use host rather than nodename consistently
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Schmid <[email protected]>
  • Loading branch information
Joshua Schmid committed Aug 20, 2018
1 parent 7c9cb7e commit 521f980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srv/modules/runners/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _grain_host(client, minion):
"""
Return the host grain for a given minion, for use a short hostname
"""
return list(client.cmd(minion, 'grains.item', ['nodename']).values())[0]['nodename']
return list(client.cmd(minion, 'grains.item', ['host']).values())[0]['host']


def minions(host=False, format='{}', **kwargs):
Expand Down

0 comments on commit 521f980

Please sign in to comment.