migrate_config only complain about keys not from defaults

Review Request #1451 - Created Dec. 9, 2014 and submitted

Information
David Taylor
pants
ffac031...
Reviewers
pants-reviews
benjyw

has_option seems to return true if a key is found from defaults even if it isn't overridden
in a given section (ours was complaining about 'confs' in a a mostly empty junit-run section).

This seems to fix it, though in the event a section was actually overriding a default,
just with the same value, it will ignore that. I couldn't figure out how to see if a section
actually defined a key without poking around in ConfigParser's private fields.


  
David Taylor
Benjy Weinberger
David Taylor
Review request changed

Status: Closed (submitted)

Change Summary:

b981e4262b8d2b746da9badd8d26efdb441fed35
Loading...