Project

General

Profile

Actions

Bug #9981

closed

Smart variable doesn't show error on new variable

Added by Ori Rabin about 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Parameters
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

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.


Related issues 2 (1 open1 closed)

Related to Foreman - Tracker #4470: Usability of parameters and overridesNew

Actions
Related to Foreman - Bug #8416: Puppetclasses edit n+1 queryClosedDaniel Lobato Garcia11/16/2014Actions
Actions

Also available in: Atom PDF