mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
"allow_no_value=True" for ini_file module so /etc/my.cnf can be read without a problem
This commit is contained in:
parent
27a73f2c11
commit
cbdc9f1153
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ import ConfigParser
|
|||
def do_ini(module, filename, section=None, option=None, value=None, state='present', backup=False):
|
||||
|
||||
changed = False
|
||||
cp = ConfigParser.ConfigParser()
|
||||
cp = ConfigParser.ConfigParser(allow_no_value=True)
|
||||
cp.optionxform = identity
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue