Description of problem: When re-edit is invoked the tools add '- {}' line to the object list, which leads to error: fatal: undefined method `name' for {}:Hash Version-Release number of selected component (if applicable): condor-wallaby-tools-5.0.3-2 How reproducible: 100% Steps to Reproduce: 1. e.g. run 'condor-configure-store -a -n node' 2. remove line with the name and end editing, by that re-edit is invoked Error: Corrupted object list. Press <Enter> to re-edit the objects from scratch 3. end editing without any change Actual results: The re-edited objects look as follows: --- - {} - !ruby/object:Mrg::Grid::SerializedConfigs::Node annotation: "" membership: [] name: node There is '- {}', it should not be there. The command ends with (even when the '- {}' line is removed): fatal: undefined method `name' for {}:Hash Expected results: The command ends successfully Additional info:
Nuking the name field causes an empty object in the entities list. The entities list is a hash, and lookup of hash[nil] creates a new entry.
Fixed upstream on branch: BZ879276-reedit-empty-obj
tested with: condor-wallaby-tools-5.0.4-1 tested on: RHEL6 i386,x86_64 RHEL5 i386,x86_64 re-edit run correctly >>> verified