Skip to content

commoncmd: make Sections() return error on missing section#1062

Open
PaulJouvanceau wants to merge 1 commit into
opensvc:mainfrom
PaulJouvanceau:dev
Open

commoncmd: make Sections() return error on missing section#1062
PaulJouvanceau wants to merge 1 commit into
opensvc:mainfrom
PaulJouvanceau:dev

Conversation

@PaulJouvanceau

Copy link
Copy Markdown
Contributor

No description provided.

Previously, `commoncmd.Sections(b, sections)` silently returned an empty
result if a requested section did not exist, producing no error and
exiting 0.

Now `Sections()` validates that all requested sections are present in the
raw config data, and returns an error with a clear message if any are missing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant