Jira (PUP-4060) Facts hash not playing well with non-existing fact

2015-03-02 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg commented on  PUP-4060 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: Facts hash not playing well with non-existing fact  
 
 
 
 
 
 
 
 
 
 
I am not able to reproduce this on 3.7.4 (nor 3.7.x to be released next).  Tried both with and without future parser (I think you are using future parser since you get an Evaluation error). Also tried various combinations with --stringify_facts true/false, and --immutable_node_data true/false. 
I tried this with: 
 
 
 
 
 
 
puppet apply -e 'if $facts['nowhere'] != undef {notice not undef} else {notice undef}' --trusted_node_data --parser=future
 
 
 
 
 
 
 
Need more information to be able to reproduce this. Please verify that it is indeed 3.7.4 that is being used. Can you supply the .pp file you used to test with? Is the guess that you are using parser=future correct? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-4060) Facts hash not playing well with non-existing fact

2015-03-02 Thread Erwin Van de Velde (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Erwin Van de Velde commented on  PUP-4060 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: Facts hash not playing well with non-existing fact  
 
 
 
 
 
 
 
 
 
 
Yes, I have enabled it and I am using it without issues in other modules. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-4060) Facts hash not playing well with non-existing fact

2015-03-02 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg assigned an issue to Erwin Van de Velde 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 Puppet /  PUP-4060 
 
 
 
  Facts hash not playing well with non-existing fact  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Assignee:
 
 ErwinVandeVelde 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-4060) Facts hash not playing well with non-existing fact

2015-03-02 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg commented on  PUP-4060 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: Facts hash not playing well with non-existing fact  
 
 
 
 
 
 
 
 
 
 
Have you enabled the $facts variable? It is opt-in in 3.x. See more here: https://docs.puppetlabs.com/puppet/latest/reference/lang_facts_and_builtin_vars.html#the-factsfactname-hash 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-4060) Facts hash not playing well with non-existing fact

2015-03-02 Thread Erwin Van de Velde (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Erwin Van de Velde created an issue 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 Puppet /  PUP-4060 
 
 
 
  Facts hash not playing well with non-existing fact  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Affects Versions:
 

 PUP 3.7.4 
 
 
 

Assignee:
 

 Unassigned 
 
 
 

Created:
 

 2015/03/02 3:03 AM 
 
 
 

Environment:
 
 
Ubuntu 14.04 64bit 
 
 
 

Priority:
 
  Normal 
 
 
 

Reporter:
 
 Erwin Van de Velde 
 
 
 
 
 
 
 
 
 
 
I have to check if a fact exists (exists only on some hosts using the module): if $facts['variable'] != undef  { ... }  But this fails with error:  Error: Evaluation Error: Operator '[]' is not applicable to a Nil Object. at /tmp/test.pp:1:4 on node vmadmin02.combell.21net.com  I expected this to work similarly to if $::variable != undef { ... } 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 

Jira (PUP-4060) Facts hash not playing well with non-existing fact

2015-03-02 Thread Erwin Van de Velde (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Erwin Van de Velde commented on  PUP-4060 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: Facts hash not playing well with non-existing fact  
 
 
 
 
 
 
 
 
 
 
Weird... I tried your commands and it failed the first time. Then I restarted puppet and now it works... Bad luck or some minions have corrected an error in the configuration for me  
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.