|
|
@ -120,6 +120,9 @@ def do_ini(module, filename, section=None, option=None, value=None, state='prese
|
|
|
|
if cp.get(section, option):
|
|
|
|
if cp.get(section, option):
|
|
|
|
cp.remove_option(section, option)
|
|
|
|
cp.remove_option(section, option)
|
|
|
|
changed = True
|
|
|
|
changed = True
|
|
|
|
|
|
|
|
except ConfigParser.InterpolationError:
|
|
|
|
|
|
|
|
cp.remove_option(section, option)
|
|
|
|
|
|
|
|
changed = True
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
@ -143,6 +146,9 @@ def do_ini(module, filename, section=None, option=None, value=None, state='prese
|
|
|
|
except ConfigParser.NoOptionError:
|
|
|
|
except ConfigParser.NoOptionError:
|
|
|
|
cp.set(section, option, value)
|
|
|
|
cp.set(section, option, value)
|
|
|
|
changed = True
|
|
|
|
changed = True
|
|
|
|
|
|
|
|
except ConfigParser.InterpolationError:
|
|
|
|
|
|
|
|
cp.set(section, option, value)
|
|
|
|
|
|
|
|
changed = True
|
|
|
|
|
|
|
|
|
|
|
|
if changed and not module.check_mode:
|
|
|
|
if changed and not module.check_mode:
|
|
|
|
if backup:
|
|
|
|
if backup:
|
|
|
|