mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
2d66c50d74
Given a state entry like the following: ``` host-staging-web: host: - present - ip: 10.102.130.100 - names: - staging-web.fqdn.com - staging-web - alt-staging-hostname ``` You'd end up with three different entries in your hosts file: ``` 10.102.130.100 staging-web.fqdn.com 10.102.130.100 staging-web.fqdn.com staging-web 10.102.130.100 staging-web.fqdn.com staging-web alt-staging-hostname ``` This corrects it by removing the previous line before appending the newly crafted on, and adds tests to prove it. |
||
---|---|---|
.. | ||
files | ||
cmdmod.py | ||
data.py | ||
disk.py | ||
grains.py | ||
hosts.py | ||
pillar.py | ||
publish.py | ||
state.py | ||
syndic.py | ||
sysmod.py | ||
test.py |