Smart variable doesn't show error on new variable
Steps to reproduce:
1. create a new smart variable with parameter type integer and a matcher with the value 'abc'
2. try to save the puppetclass
Expected result: tab becomes red, next to value an error message "is invalid integer"
Actual result: the variable disappears and the puppetclass can't be saved
Workaround for now: save the puppetclass when the variable is empty (only parameter, type and default value) and then edit.
When the variable is updated the validations are shown correctly.
#3 Updated by Walden Raines over 4 years ago
There are, in fact, two issues here.
1. If you don't enter a key then it saves the puppet class but does not attempt to save the new smart variable at all and spits you out on the puppetclasses list page
2. If you enter a key and also enter an invalid default value (a string for an int, for example) then the form marks itself as invalid but does not specify what the actual issue is