saltstack/salt — pull request #8787 by itnihao (2013-11-24 17:44:16+00:00)
Title: [New function] Add get and mod hostname in network module

I add a new function to network.py,like this:
```
[root@saltmaster ~]# salt 'node1' network.get_hostname
node1:
saltmaster.itnihao.com
[root@saltmaster ~]# salt 'node1' network.mod_hostname salt.control.com
node1:
True
[root@saltmaster ~]# salt 'node1' network.get_hostname
node1:
salt.control.com
```

https://github.com/itnihao/salt/blob/develop/salt/modules/network.py