Puppet: System Administration Automated

Support

Ticket #1201 (assigned defect)

Opened 9 months ago

Last modified 8 months ago

Variables defined via external node script are not same as ones defined in manifests

Reported by: snemetz Assigned to: luke (accepted)
Priority: normal Milestone: 0.24.5
Component: unknown Version: 0.24.4
Severity: normal Keywords: variable external node template
Cc: Triage Stage: Accepted
Attached Patches: None Complexity: Easy

Description

In converting to an external node classifier script all my if statements in templates started failing. While a variable created either via the script or a manifest would print the same they do not test the same.

The problem is that variables defined in a manifest are of class 'String', but variables defined via an external script are of class 'TrueClass'. This breaks all comparisons, since TrueClass needs to be converted to a string before you can run string comparisons on it.

Change History

04/24/08 01:41:03 changed by jamtur01

  • owner changed from community to jamtur01.
  • stage changed from Unreviewed to Accepted.

04/24/08 07:27:57 changed by luke

  • component changed from server to unknown.

05/12/08 23:43:10 changed by luke

  • milestone set to 0.24.5.

05/16/08 06:19:57 changed by luke

  • owner changed from jamtur01 to luke.
  • status changed from new to assigned.
  • complexity changed from Unknown to Easy.