mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Use file.append to write
This commit is contained in:
parent
3286bc0833
commit
246434ec86
@ -1486,7 +1486,7 @@ def build_bond(iface, **settings):
|
|||||||
__salt__['cmd.run'](
|
__salt__['cmd.run'](
|
||||||
'sed -i -e "/^options\\s{0}.*/d" /etc/modprobe.conf'.format(iface)
|
'sed -i -e "/^options\\s{0}.*/d" /etc/modprobe.conf'.format(iface)
|
||||||
)
|
)
|
||||||
__salt__['cmd.run']('cat {0} >> /etc/modprobe.conf'.format(path))
|
__salt__['file.append']('/etc/modprobe.conf', path)
|
||||||
|
|
||||||
# Load kernel module
|
# Load kernel module
|
||||||
__salt__['kmod.load']('bonding')
|
__salt__['kmod.load']('bonding')
|
||||||
|
Loading…
Reference in New Issue
Block a user