Jira (PUP-8271) init plans in bolt do not load correctly from 'bolt plan show'

2018-01-02 Thread Michael Smith (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Michael Smith updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-8271 
 
 
 
  init plans in bolt do not load correctly from 'bolt plan show'  
 
 
 
 
 
 
 
 
 

Change By:
 
 Michael Smith 
 
 
 

Fix Version/s:
 
 BOLT 0.12.0 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-8271) init plans in bolt do not load correctly from 'bolt plan show'

2018-01-02 Thread Michael Smith (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Michael Smith commented on  PUP-8271 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: init plans in bolt do not load correctly from 'bolt plan show'  
 
 
 
 
 
 
 
 
 
 
Manually verified: 
 
 
 
 
 
 
$ cat spec/fixtures/modules/sample/plans/init.pp 
 
 
 
 
plan sample() { 
 
 
 
 
  notice 'I am the init plan' 
 
 
 
 
} 
 
 
 
 
$ bolt plan show --modulepath spec/fixtures/modules 
 
 
 
 
sample 
 
 
 
 
sample::single_task 
 
 
 
 
sample::three_tasks 
 
 
 
 
sample::two_tasks
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  

Jira (PUP-8271) init plans in bolt do not load correctly from 'bolt plan show'

2017-12-21 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg commented on  PUP-8271 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: init plans in bolt do not load correctly from 'bolt plan show'  
 
 
 
 
 
 
 
 
 
 
Fix merged to master. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-8271) init plans in bolt do not load correctly from 'bolt plan show'

2017-12-21 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-8271 
 
 
 
  init plans in bolt do not load correctly from 'bolt plan show'  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Release Notes Summary:
 
 release note not needed for puppet - this only affects Bolt. 
 
 
 

Release Notes:
 
 Not Needed 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-8271) init plans in bolt do not load correctly from 'bolt plan show'

2017-12-21 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-8271 
 
 
 
  init plans in bolt do not load correctly from 'bolt plan show'  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Fix Version/s:
 
 PUP 5.4.0 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-8271) init plans in bolt do not load correctly from 'bolt plan show'

2017-12-20 Thread Michael Smith (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Michael Smith updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-8271 
 
 
 
  init plans in bolt do not load correctly from 'bolt plan show'  
 
 
 
 
 
 
 
 
 

Change By:
 
 Michael Smith 
 
 
 

Affects Version/s:
 
 PUP 5.4.0 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-8271) init plans in bolt do not load correctly from 'bolt plan show'

2017-12-20 Thread Alex Dreyer (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Alex Dreyer updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-8271 
 
 
 
  init plans in bolt do not load correctly from 'bolt plan show'  
 
 
 
 
 
 
 
 
 

Change By:
 
 Alex Dreyer 
 
 
 
 
 
 
 
 
 
 *Puppet Version: vendored branch = feature_puppet-tasksDescribe your issue in as much detail as possible…Describe steps to reproduce…*Desired Behavior:**Actual Behavior:Given the following plan{code:title=modules/foo/plans/init.pp}plan foo() {  notice 'I am the init plan for the foo module'}{code}And I use 'bolt plan show', I get the following.{code}[root@p0dv972ia1yz1v1 ~]# bolt plan show --modulepath ~/modules   (at /usr/local/share/gems/gems/bolt-9.9.afe6bdc/vendored/puppet/lib/puppet.rb:130:in `')Error: The code loaded from /root/modules/foo/plans/init.pp produced plan with the wrong name, expected foo::init, actual foo on node p0dv972ia1yz1v1.delivery.puppetlabs.netFailure while reading plans{code}If I attempt to run this plan it works correctly.  {code}[root@p0dv972ia1yz1v1 ~]# bolt plan run foo --modulepath ~/modulesNotice: Scope(/foo/plans/init.pp, 2): I am the init plan{code} There is a second related issue where both list_task and list_plan methods return objects that don't remove the {{init}} part of the task and plan names. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 

Jira (PUP-8271) init plans in bolt do not load correctly from 'bolt plan show'

2017-12-20 Thread Alex Dreyer (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Alex Dreyer assigned an issue to Alex Dreyer 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-8271 
 
 
 
  init plans in bolt do not load correctly from 'bolt plan show'  
 
 
 
 
 
 
 
 
 

Change By:
 
 Alex Dreyer 
 
 
 

Assignee:
 
 Thomas Hallgren Alex Dreyer 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-8271) init plans in bolt do not load correctly from 'bolt plan show'

2017-12-20 Thread Alex Dreyer (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Alex Dreyer commented on  PUP-8271 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: init plans in bolt do not load correctly from 'bolt plan show'  
 
 
 
 
 
 
 
 
 
 
It's related in that the way we handle plan names seems to be off. We can fix this by handing the init name in the plan loader. That prevents the error but at that point the name returned by list plan is still wrong. 
https://github.com/puppetlabs/puppet/blob/master/lib/puppet/pops/loader/puppet_plan_instantiator.rb#L36 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-8271) init plans in bolt do not load correctly from 'bolt plan show'

2017-12-20 Thread Michael Smith (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Michael Smith commented on  PUP-8271 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: init plans in bolt do not load correctly from 'bolt plan show'  
 
 
 
 
 
 
 
 
 
 
list_plans seems to be behaving surprisingly here. This also seems related to BOLT-274, where we think list_tasks should strip '::init' off the returned task names. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-8271) init plans in bolt do not load correctly from 'bolt plan show'

2017-12-20 Thread Zach Reichert (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Zach Reichert created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-8271 
 
 
 
  init plans in bolt do not load correctly from 'bolt plan show'  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Assignee:
 
 Thomas Hallgren 
 
 
 

Created:
 

 2017/12/20 11:36 AM 
 
 
 

Priority:
 
  Normal 
 
 
 

Reporter:
 
 Zach Reichert 
 
 
 
 
 
 
 
 
 
 
*Puppet Version: vendored  branch = feature_puppet-tasks 
Describe your issue in as much detail as possible… Describe steps to reproduce… 
Desired Behavior: 
*Actual Behavior: Given the following plan 
 
 
 
 
 
 
modules/foo/plans/init.pp 
 
 
 
 
 
 
plan foo() { 
 
 
 
 
  notice 'I am the init plan for the foo module'