Hi Roman,
String comparison definitely works in Puppet. Perhaps your variables are
not what you think they are. Here's an example to help you debug the issue.
notify { "a = <${a}>": }
notify { "b = <${b}>": }
If they look the same, you might have a difference in type. '/foo' !=
['/foo'].
You can use the following to help you debug further.
$type_a = type($a)
$type_b = type($b)
notify { "type_a = <${type_a}>": }
notify { "type_b = <${type_b}>": }
Best regards,
-g
--
Garrett Honeycutt
@learnpuppet
Puppet Training with LearnPuppet.com
Mobile:
+1.206.414.8658