Commit 54aeaaf4 by Robert Parrott

small change ... in order to get changed signal correct, move DEFAULT section test upward.

parent 76213591
......@@ -117,9 +117,9 @@ def do_ini(module, filename, section=None, option=None, value=None, state='prese
if state == 'present':
if cp.has_section(section) == False:
# DEFAULT section is always there by DEFAULT, so never try to add it.
if cp.has_section(section) == False and section.upper() != 'DEFAULT':
if section.upper() != 'DEFAULT':
cp.add_section(section)
changed = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment