Project

General

Profile

Actions

Bug #23824

open

hammer/foreman not following Var paths and then getting datatype of var goes wrong and u get a wierd string instead of a Boolean

Added by Stephen Cooke over 6 years ago. Updated over 6 years ago.

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

Description

Example

class myclass::tool (
$raw_var = $::myclass::raw_var
)inherits myclass {
stuff
}

The above would cause proxy import to see the value of $raw_value as a string that contains "$::myclass::raw_var" hardly what u want to happen.

really not sure who or how to get proxy import to get around this, the only way I have found it to stop using inherit like this and default the values to say : false

The other issue I saw during testing around Boolean was a reverse logic sort of error. If the default to a Boolean was true, setting it false via hammer caused to error. please test this. set a Boolean to a default of true instead of false and watch it fail.

Actions #1

Updated by Martin Bacovsky over 6 years ago

  • Project changed from Hammer CLI to Foreman
  • Category changed from Proxy to Puppet integration

The root cause is not hammer related, changing the category to Foreman > Puppet integration.

Actions

Also available in: Atom PDF