Skip to content

Commit

Permalink
Too eager replacing
Browse files Browse the repository at this point in the history
Accidentally replaced seobject function names so fix them back
  • Loading branch information
bluikko committed Feb 21, 2023
1 parent a7f6ccb commit 80e604a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/modules/sefcontext.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def semanage_fcontext_modify(module, result, target, ftype, setype, substitute,

if substitute != orig_substitute:
if not module.check_mode:
sefcontext.modify_substitute(target, substitute)
sefcontext.modify_equal(target, substitute)
changed = True

if module._diff:
Expand All @@ -265,7 +265,7 @@ def semanage_fcontext_modify(module, result, target, ftype, setype, substitute,
else:
# Add missing path substitution entry
if not module.check_mode:
sefcontext.add_substitute(target, substitute)
sefcontext.add_equal(target, substitute)
changed = True
if module._diff:
prepared_diff += '# Addition to semanage file context path substitutions\n'
Expand Down

0 comments on commit 80e604a

Please sign in to comment.