Skip to content

Commit

Permalink
Merge pull request metomi#2061 from oliver-sanders/406.edit-remove-tr…
Browse files Browse the repository at this point in the history
…igger-state-variable-error-ith-variable

edit: remove errors before removing variables.
  • Loading branch information
arjclark authored Mar 13, 2017
2 parents 24dfc00 + af173b7 commit dd5d2c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/python/rose/config_editor/ops/variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def add_var(self, variable, skip_update=False, skip_undo=False):
def remove_var(self, variable, skip_update=False, skip_undo=False):
"""Remove the variable entry from the internal lists."""
variable = self._get_proper_variable(variable)
variable.error = {} # Kill any metadata errors before removing.
namespace = variable.metadata.get('full_ns')
var_id = variable.metadata['id']
sect, opt = self.__util.get_section_option_from_id(var_id)
Expand Down

0 comments on commit dd5d2c3

Please sign in to comment.