mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 11:10:21 -07:00
FreeBSD 10 compatibility fix
On FreeBSD the whitespace around the ``=`` triggers a (cryptic) ``no such file or directory`` error. removing the whitespace like above fixes this.
This commit is contained in:
parent
ec950b8ea2
commit
146a0f1cb7
1 changed files with 1 additions and 1 deletions
|
@ -285,7 +285,7 @@ class SysctlModule(object):
|
||||||
self.fixed_lines.append(new_line)
|
self.fixed_lines.append(new_line)
|
||||||
|
|
||||||
if self.args['name'] not in checked and self.args['state'] == "present":
|
if self.args['name'] not in checked and self.args['state'] == "present":
|
||||||
new_line = "%s = %s\n" % (self.args['name'], self.args['value'])
|
new_line = "%s=%s\n" % (self.args['name'], self.args['value'])
|
||||||
self.fixed_lines.append(new_line)
|
self.fixed_lines.append(new_line)
|
||||||
|
|
||||||
# Completely rewrite the sysctl file
|
# Completely rewrite the sysctl file
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue