mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
small change ... in order to get changed signal correct, move DEFAULT section test upward.
This commit is contained in:
parent
762135915c
commit
54aeaaf486
1 changed files with 3 additions and 3 deletions
|
@ -117,10 +117,10 @@ 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)
|
||||
cp.add_section(section)
|
||||
changed = True
|
||||
|
||||
if option is not None and value is not None:
|
||||
|
|
Loading…
Reference in a new issue