[chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: notifies on resource not notifying


Chronological Thread 
  • From: Seif Attar < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: notifies on resource not notifying
  • Date: Fri, 4 Jan 2013 12:07:35 +0000



On 3 January 2013 23:57, Daniel DeLeo < " target="_blank"> > wrote:
Okay, then we need to track down where these values are being set. Try this:

class Chef
  class Resource
    class Template
      def mode(*args)
        unless args.empty?
          Chef::Log.warn("Template mode being set to '#{args.inspect}' from:")
          Chef::Log.warn(caller.join("\n"))
        end
        super
      end
    end
  end
end

Wasn't sure where to add this, but managed to crowbar it into the template mixin. output:

https://gist.github.com/4452128

I modified the template.rb and added

              if Chef::Platform.windows?             
                return
              end

on line 66 after access_control.set_all!

And I am no longer getting that exception now.



Archive powered by MHonArc 2.6.16.

§