add_option in python interface returns "SPUD_NEW_KEY_WARNING"

Bug #813431 reported by Jon Hill
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Spud
In Progress
Low
Jon Hill

Bug Description

I think this warning is superfluous as the user is aware that they are adding a new key and just causes an error trap in user code which is unnecessary

Related branches

Revision history for this message
Jon Hill (jon-hill) wrote :

Patch attached with an extra condition on the return of add_options.

Revision history for this message
Patrick Farrell (pefarrell) wrote :

I agree: add_option shouldn't complain that it has added an option. Jon, can you apply your patch on a branch and make a merge request?

Revision history for this message
Jon Hill (jon-hill) wrote :

Done. Merge requested.

Revision history for this message
Florian Rathgeber (florian-rathgeber) wrote :

This still isn't fixed on the C++ layer (fix is trivial). We should reject Jon's merge request (since it's only a fix for the Python interface) and send a merge request for a C++ fix. Opinions?

Changed in spud:
status: New → In Progress
Revision history for this message
Jon Hill (jon-hill) wrote :

Agreed. I will attempt a fix soon.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.