Issue #2105 has been updated by jamtur01. Category set to documentation Status changed from Unreviewed to Accepted Assigned to set to community Target version set to unplanned
---------------------------------------- Bug #2105: Order matters with tagged function http://projects.reductivelabs.com/issues/2105 Author: lludwig Status: Unreviewed Priority: Normal Assigned to: community Category: documentation Target version: unplanned Complexity: Unknown Affected version: 0.24.8 Keywords: It should be noted in the documentation of the limits when using the 'tagged' function ordering of classes via 'include' matters. Ie this code. code: <pre> class a { notify {"class a": } if tagged("b") { notify {"found class b": } } } class b { notify {"class b": } } class test { notify {"class test": } include a include b } </pre> test output: <pre> [r...@bast ~]# puppet -e "include test" test.pp --verbose --logdest=console --debug debug: importing '/home/larry/test.pp' info: Autoloaded module test debug: Creating default schedules debug: //test/a/Notify[class a]: Changing message debug: //test/a/Notify[class a]: 1 change(s) notice: class a notice: //test/a/Notify[class a]/message: defined 'message' as 'class a' debug: //test/Notify[class test]: Changing message debug: //test/Notify[class test]: 1 change(s) notice: class test notice: //test/Notify[class test]/message: defined 'message' as 'class test' debug: //test/b/Notify[class b]: Changing message debug: //test/b/Notify[class b]: 1 change(s) notice: class b notice: //test/b/Notify[class b]/message: defined 'message' as 'class b' debug: Finishing transaction 70131190151540 with 3 changes </pre> will only output "found class b" when the order of includes is reversed. ---------------------------------------- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://reductivelabs.com/redmine/my/account --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en -~----------~----~----~----~------~----~------~--~---
