Project

General

Profile

Actions

Bug #20931

closed

Using host_params in parameters leads to @Safemode doesn't allow to access 'host_params' on #<Safemode::ScopeObject>@

Added by Ivan Necas over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Parameters
Target version:
Difficulty:
medium
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

1. use <%= host_params('blabla') %> inside the host parameters
2. Rendering fails on Safemode doesn't allow to access 'host_params' on #<Safemode::ScopeObject>


Related issues 2 (0 open2 closed)

Related to Foreman - Feature #16740: Host parameters should be available in templates using some macroClosedOndřej Pražák09/29/2016Actions
Related to Foreman - Bug #23593: function "host_param" in default value of smart class parameter is not allowed anymore. It results in undefined method `host_param' (erb):1:in `parse_string'DuplicateActions
Actions #1

Updated by Ivan Necas over 6 years ago

  • Related to Feature #16740: Host parameters should be available in templates using some macro added
Actions #2

Updated by Ivan Necas over 6 years ago

  • Difficulty changed from easy to medium
Actions #3

Updated by The Foreman Bot over 6 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4835 added
Actions #4

Updated by Marek Hulán about 6 years ago

  • translation missing: en.field_release set to 330
Actions #5

Updated by Ivan Necas about 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #6

Updated by Marek Hulán almost 6 years ago

  • Related to Bug #23593: function "host_param" in default value of smart class parameter is not allowed anymore. It results in undefined method `host_param' (erb):1:in `parse_string' added
Actions #7

Updated by Ondřej Pražák over 5 years ago

  • Triaged set to No
  • Fixed in Releases 1.18.2 added
Actions #8

Updated by Tomer Brisker over 5 years ago

  • Fixed in Releases 1.18.0 added
  • Fixed in Releases deleted (1.18.2)
Actions

Also available in: Atom PDF