Project

General

Profile

Actions

Bug #21352

open

override can not unset a global variable

Added by Han Boetes over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I have a global variable for my proxy, see url below, and that works great, but I wanted to test installing without a proxy so I used the override, emptied the string and then noticed the generated template still contains proxy=http:// etc.

The override should be able to unset a variable as well, I think.

https://github.com/theforeman/community-templates/pull/388/commits/08ef1647069cdd16a1155b830f8171049a13e02b

Actions #1

Updated by Marek Hulán over 6 years ago

  • Category set to Templates

It looks like the template should handle empty strings as "nil" value, in such case just defining the parameter with the same name but blank value should work.

Actions

Also available in: Atom PDF