community.general icon indicating copy to clipboard operation
community.general copied to clipboard

ini_file - add feature 'section_has_values'

Open jakob-bebop opened this issue 9 months ago • 14 comments

SUMMARY

ini_file: Add an optional parameter section_has. If the target ini file contains more than one section, use section_has to specify which one should be updated.

Use case: In wireguard config there can be multiple [Peer] sections. See example in source code doc string

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

ini_file

jakob-bebop avatar Nov 09 '23 11:11 jakob-bebop