Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: the parser "LvmConfig" raises exception #3476

Merged
merged 5 commits into from
Jul 28, 2022
Merged

fix: the parser "LvmConfig" raises exception #3476

merged 5 commits into from
Jul 28, 2022

Conversation

huali027
Copy link
Contributor

@huali027 huali027 commented Jul 21, 2022

It fails to parse the content when there is "umask=077" in the configuration.

Signed-off-by: Huanhuan Li [email protected]

All Pull Requests:

Check all that apply:

  • Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
  • Is this PR to correct an issue?
  • Is this PR an enhancement?
    fixes: A bug of parser "LvmConfig" #3475

* It fails to parse the content when there is "umask=077" in the global configuration.

Signed-off-by: Huanhuan Li <[email protected]>
@huali027
Copy link
Contributor Author

@xiangce Please help to review, thanks.

insights/parsers/lvm.py Outdated Show resolved Hide resolved
insights/parsers/lvm.py Outdated Show resolved Hide resolved
insights/parsers/lvm.py Outdated Show resolved Hide resolved
huali027 added 2 commits July 28, 2022 10:54
Signed-off-by: Huanhuan Li <[email protected]>
Signed-off-by: Huanhuan Li <[email protected]>
@psachin psachin merged commit 9e7ccce into RedHatInsights:master Jul 28, 2022
xiangce pushed a commit that referenced this pull request Jul 28, 2022
* fix: the parser "LvmConfig" raises exception

* It fails to parse the content when there is "umask=077" in the global configuration.

Signed-off-by: Huanhuan Li <[email protected]>

* Only fix "umask=077" and keep the other strings as integer

Signed-off-by: Huanhuan Li <[email protected]>

* Transfer the value first before storing

Signed-off-by: Huanhuan Li <[email protected]>

* Keep data as dict

Signed-off-by: Huanhuan Li <[email protected]>

* Add test for ParseException

Signed-off-by: Huanhuan Li <[email protected]>
(cherry picked from commit 9e7ccce)
xiangce pushed a commit that referenced this pull request Sep 6, 2024
* fix: the parser "LvmConfig" raises exception

* It fails to parse the content when there is "umask=077" in the global configuration.

Signed-off-by: Huanhuan Li <[email protected]>

* Only fix "umask=077" and keep the other strings as integer

Signed-off-by: Huanhuan Li <[email protected]>

* Transfer the value first before storing

Signed-off-by: Huanhuan Li <[email protected]>

* Keep data as dict

Signed-off-by: Huanhuan Li <[email protected]>

* Add test for ParseException

Signed-off-by: Huanhuan Li <[email protected]>
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.

A bug of parser "LvmConfig"
3 participants