Jira (PUP-4911) Parameters on exported resources consiting of an array with a single element are "de-arrayified"

2015-07-21 Thread Reinhard Vicinus (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Reinhard Vicinus created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-4911 
 
 
 
  Parameters on exported resources consiting of an array with a single element are "de-arrayified"  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Affects Versions:
 

 PUP 3.8.1 
 
 
 

Assignee:
 

 Unassigned 
 
 
 

Created:
 

 2015/07/21 8:59 AM 
 
 
 

Priority:
 
  Normal 
 
 
 

Reporter:
 
 Reinhard Vicinus 
 
 
 
 
 
 
 
 
 
 
If a exported resource with a parameter consisting of an array with a single value is defined on one puppet node and then collected on another puppet node the array with the single value is "de-arrayified".  
Example: 
define profiles::vres ( $dummy, ) { if is_array($dummy) { notify  { "array_$title": message => join($dummy, '_'), } 
 } else { notify  { "nonarray_$title": message => "NOT AN ARRAY: $dummy", } 
 } } 
on one server: 
@@profiles::vres  { "arraywithonevalue": dummy => [ "a", ], } 
on another server: 
Profiles::Vres <<| |>> 
result of collecting the resource: 
Notice: NOT AN ARRAY: a Notice: /Stage[main]/Roles::Collectvres/Profiles::Vres[arraywithonevalue]/Notify[nonarray_arraywithonevalue]/message: defined 'message' as 'NOT AN ARRAY: a' 
This is probably related to 

PUP-1299
   

Jira (PUP-4911) Parameters on exported resources consiting of an array with a single element are "de-arrayified"

2016-02-07 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-4911 
 
 
 
  Parameters on exported resources consiting of an array with a single element are "de-arrayified"  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Sprint:
 
 Language Triage 
 
 
 

Scrum Team:
 
 Language 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-4911) Parameters on exported resources consiting of an array with a single element are "de-arrayified"

2016-02-13 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-4911 
 
 
 
  Parameters on exported resources consiting of an array with a single element are "de-arrayified"  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 
 
 
 
 
 
 
 If a exported resource with a parameter consisting of an array with a single value is defined on one puppet node and then collected on another puppet node the array with the single value is "de-arrayified". Example: {code:puppet} define profiles::vres (  $dummy,) {  if is_array($dummy) {notify { "array_$title":  message => join($dummy, '_'),}  } else {notify { "nonarray_$title":  message => "NOT AN ARRAY: $dummy",}  }} {code}   on one server: {code:puppet} @@profiles::vres { "arraywithonevalue":dummy => [ "a", ],} {code} on another server: {code:puppt} Profiles::Vres <<| |>> {code} result of collecting the resource: {code} Notice: NOT AN ARRAY: aNotice: /Stage[main]/Roles::Collectvres/Profiles::Vres[arraywithonevalue]/Notify[nonarray_arraywithonevalue]/message: defined 'message' as 'NOT AN ARRAY: a' {code}   This is probably related to PUP-1299 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-4911) Parameters on exported resources consiting of an array with a single element are "de-arrayified"

2016-02-13 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg assigned an issue to Reinhard Vicinus 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-4911 
 
 
 
  Parameters on exported resources consiting of an array with a single element are "de-arrayified"  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Assignee:
 
 Reinhard Vicinus 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-4911) Parameters on exported resources consiting of an array with a single element are "de-arrayified"

2016-02-13 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg commented on  PUP-4911 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Parameters on exported resources consiting of an array with a single element are "de-arrayified"  
 
 
 
 
 
 
 
 
 
 
Are you running with parser=future ? The issue 

PUP-1299
 was fixed for future parser only in 3.x and is the default in Puppet 4.x. 
The work around for earlier versions was to include the same value twice in the array (although this may not always work). 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-4911) Parameters on exported resources consiting of an array with a single element are "de-arrayified"

2016-02-13 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-4911 
 
 
 
  Parameters on exported resources consiting of an array with a single element are "de-arrayified"  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Sprint:
 
 Language Triage 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-4911) Parameters on exported resources consiting of an array with a single element are "de-arrayified"

2016-02-14 Thread Reinhard Vicinus (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Reinhard Vicinus commented on  PUP-4911 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Parameters on exported resources consiting of an array with a single element are "de-arrayified"  
 
 
 
 
 
 
 
 
 
 
Spontaneously I would say I run it with future parser off, because I'm pretty sure I would have mentioned if the future parser was active. But it's quite some time in the past and I don't have a puppet 3.x setup anymore for testing it. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-4911) Parameters on exported resources consiting of an array with a single element are "de-arrayified"

2016-02-14 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg commented on  PUP-4911 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Parameters on exported resources consiting of an array with a single element are "de-arrayified"  
 
 
 
 
 
 
 
 
 
 
Does that mean we can close this as it is supposedly fixed in 4.x ? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-4911) Parameters on exported resources consiting of an array with a single element are "de-arrayified"

2016-02-14 Thread Reinhard Vicinus (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Reinhard Vicinus commented on  PUP-4911 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Parameters on exported resources consiting of an array with a single element are "de-arrayified"  
 
 
 
 
 
 
 
 
 
 
From my site, this can be closed. I switched to puppet 4.x and there it works. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.