Skip to content

Commit 347f590

Browse files
authored
Merge pull request #1799 from nicklewis/bolt-plan-show-project-plans
(maint) Fix plan show for project plans
2 parents e8c9952 + 9912525 commit 347f590

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/bolt/pal.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@ def get_plan_info(plan_name)
329329
raise Bolt::Error.unknown_plan(plan_name)
330330
end
331331

332-
mod = plan_sig.instance_variable_get(:@plan_func).loader.parent.path
332+
# path may be a Pathname object, so make sure to stringify it
333+
mod = plan_sig.instance_variable_get(:@plan_func).loader.parent.path.to_s
333334

334335
# If it's a Puppet language plan, use strings to extract data. The only
335336
# way to tell is to check which filename exists in the module.

0 commit comments

Comments
 (0)