Jira (BOLT-1157) Target instances can't be passed across an apply() boundary

2019-08-15 Thread Yasmin Rajabi (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Yasmin Rajabi updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet Task Runner /  BOLT-1157  
 
 
  Target instances can't be passed across an apply() boundary   
 

  
 
 
 
 

 
Change By: 
 Yasmin Rajabi  
 
 
Labels: 
 ghm  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.298385.1551807433000.58609.1565909400173%40Atlassian.JIRA.


Jira (BOLT-1157) Target instances can't be passed across an apply() boundary

2019-03-05 Thread Nick Lewis (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Nick Lewis created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet Task Runner /  BOLT-1157  
 
 
  Target instances can't be passed across an apply() boundary   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Created: 
 2019/03/05 9:37 AM  
 
 
Priority: 
  Normal  
 
 
Reporter: 
 Nick Lewis  
 

  
 
 
 
 

 
 Due to the simple JSON serialization we use to pass state from a plan into the catalog compiler, variables with complex object types like Target can't be references inside an apply block. For example:  
 
 
 
 
 plan test(TargetSpec $nodes) {  
 
 
   $targets = $nodes.get_targets  
 
 
   apply($nodes) {  
 
 
 notice($targets[0].type)  
 
 
   }  
 
 
 }