#320 SSSDConfig: Changing bool values and saving them are parsed incorrectly
Closed: Fixed Opened by sgallagh.

From Tomas Mraz:

If I do:

domain = cfg.get_domain('a')
domain.set_option('opt', 'value')
cfg.save_domain(domain)

I'd expect that:

dom2 = cfg.get_domain('a')
dom2.get_option('opt') == 'value'

But unfortunately this is not true, the old value is still set in the
dom2.

...

Actually this problem is slightly different - it happens only for bool
values when changing from True to False and it is probably caused by
wrong parsing of the bool values from the text data.

So hopefully it should be easy to fix.


Fields changed

status: new => assigned

Fixed by 16287c8da1a1b0d9a4d9265f1c2a412090fd3e24

Marking "Tests Updated", as this fix includes in-tree regression tests for this bug.

fixedin: => 1.0.0
resolution: => fixed
status: assigned => closed
testsupdated: 0 => 1

Fields changed

rhbz: => 0

Metadata Update from @sgallagh:
- Issue assigned to sgallagh
- Issue set to the milestone: SSSD 1.0

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/1362

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata