Browse Source

This is not always a named tuple

remotes/origin/master
Sean Johnson 2 years ago
parent
commit
ebc4e5e7b5
  1. 2
      _grains/from_node_name.py

2
_grains/from_node_name.py

@ -59,7 +59,7 @@ def _get_hostname(cfg):
switch = {
"hostname": lambda: socket.gethostname(),
"fqdn": lambda: socket.getfqdn(),
"nodename": lambda: platform.uname().node,
"nodename": lambda: platform.uname()[1],
}
fetcher = switch.get(cfg.get("source", "nodename").lower())

Loading…
Cancel
Save