On 11/13/2012 08:19 PM, Gavin Williams wrote: > After a quick google, came up with: > > #!/usr/bin/env ruby > > grades = { "Bob" => 82, > "Jim" => 94, > "Billy" => 58 > } > > grades.each do|name,grade| > puts "#{name}: #{grade}" > end > > > So now all I need to do is pull the existing options values and compile > a hash to compare in the exists?, and use the above in the create... > > Quick question on the create - how will it handle one property that > matches, but one property that doesn't?
I've done a similar mangling (from/to hashes) in my Cobbler module, I could send it to you so you can learn by example, if you're interested. But to answer your main point - if the sorted hashes aren't the same, provider will try to change the state to the new hash. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.