Jira (PUP-4332) Resource properties frozen if copied from $title
Title: Message Title Moses Mendoza updated an issue Puppet / PUP-4332 Resource properties frozen if copied from $title Change By: Moses Mendoza Labels: triaged Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- 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-4332) Resource properties frozen if copied from $title
Title: Message Title Josh Cooper commented on PUP-4332 Re: Resource properties frozen if copied from $title I can't repro in Puppet 4.10.1: [root@a31pq7go230crcw ~]# cat manifest.pp define account ( $comment = $title, $uid, ) { user { $title: ensure => present, comment => $comment, } }
Jira (PUP-4332) Resource properties frozen if copied from $title
Title: Message Title Moses Mendoza commented on PUP-4332 Re: Resource properties frozen if copied from $title Thank you for reporting this issue. However, we believe this issue only affects a version of Puppet that has reached its end of life or is no longer supported. For more info on getting the current version of Puppet Agent, see https://docs.puppet.com/puppet/latest/install_pre.html. Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- 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-4332) Resource properties frozen if copied from $title
Title: Message Title John Duarte updated an issue Puppet / PUP-4332 Resource properties frozen if copied from $title Change By: John Duarte Labels: triaged Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- 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-4332) Resource properties frozen if copied from $title
Title: Message Title Craig Dunn updated an issue Puppet / PUP-4332 Resource properties frozen if copied from $title Change By: Craig Dunn Thereissomestrangebehaviourwhencreatinguserresourcesfromadefinedtypeviathecreate_resourcesfunction.Takethisexample;{code:title=manifests/accounts.pp}defineaccount($comment=$title,$uid,){user{$title:ensure=present,comment=$comment,}}{code}Notethatthe$commentvariabledefaultsto$title.Thefailurehappenswhenyoutryandusecreate_resourcestospinoffinstancesoftheaccountdefinedtypewithoutsupplyingcomment{code:title=Workingasexpected}account{'test1':uid='2022'}$accounts2={'test23'={'uid'='2024','comment'='foo'}}create_resources('account',$accounts2){code}However,ifweusecreate_resourceswithoutthecomment,IwouldexpectthesamebehaviourIgetwhendeclaringtheresourceusingthedefaultfor$comment(firstexampleabove),howeverthisfails...{code}$accounts={'test2'={'uid'='2023'}}create_resources('account',$accounts)Error:ParametercommentfailedonUser[ troot test2 ]:Mungingfailedforvalue troot test2 inclasscomment:can'tmodifyfrozenStringat...Wrappedexception:Mungingfailedforvalue troot test2 inclasscomment:can'tmodifyfrozenString{code}Itlookslikethe[Thischange|https://github.com/puppetlabs/puppet/commit/065c4f5b5c78ca8f16c189b55051681beb1c5052]aspartofPUP-1473highlightedtheissue.Itappearsthatinthelastscenario,thecommentparameterendsupafrozenstringbecauseitwascopiedfrom$titleandthiscausesforce_encodingtothrowanerror,butIonlyseemtoobservethisbehaviourusingcreate_resources.SoalthoughImseeingtheproblemintheuserstype,Isuspecttherootcausetobeelsewhere-thecommentpropertyshouldnotbefrozen,andwhydon'tIgetthesamebehaviourwhendeclaringtheresourcedirectly?Amodulelevelworkaroundistoquotetheparameterinthedefinedresourcetypeas:{code}$comment=${title},{code}Theabovepassesall3testsThesetestswererunonpuppet3.7.3ruby2.0.0p353 Add Comment This message was sent by Atlassian JIRA (v6.3.15#6346-sha1:dbc023d)
Jira (PUP-4332) Resource properties frozen if copied from $title
Title: Message Title Craig Dunn created an issue Puppet / PUP-4332 Resource properties frozen if copied from $title Issue Type: Bug Affects Versions: PUP 3.7.3 Assignee: Unassigned Created: 2015/03/27 2:40 AM Priority: Normal Reporter: Craig Dunn There is some strange behaviour when creating user resources from a defined type via the create_resources function. Take this example; manifests/accounts.pp define account ( $comment = $title,