On Thursday, January 3, 2013 at 11:39 AM, Seif Attar wrote:
On 3 January 2013 18:25, Daniel DeLeo < " target="_blank"> > wrote:Then can you try commenting out that method? That's the only place I can think of where you'd be getting unix-style permissions attributes getting set on your resource.I commented out all lines inside File#load_current_resource_attrs and added
Chef::Log.info("current_resource ' '")
Chef::Log.info("new_resource ' '")
Resulting in (sorry about the messy layout):
localhost [2013-01-03T19:20:25+00:00] INFO: current_resource '<template[C:/Temp/bt97/1.8.9-alpha-01133/Deployment/Settings/CHEF.js] @name: "C:/Temp/bt97/1.8.9-alpha-01133/Deployment/Settings/CHEF.js" @noop: nil @before: nil @params: {} @provider: Chef::Provider::Template @allowed_actions: [:nothing, :create, :delete, :touch, :create_if_missing] @action: "create" @updated: false @updated_by_last_action: false @supports: {} @ignore_failure: false @retries: 0 @retry_delay: 2 @source_line: nil @elapsed_time: 0 @resource_name: :template @path: "C:/Temp/bt97/1.8.9-alpha-01133/Deployment/Settings/CHEF.js" @backup: 5 @diff: nil @source: "CHEF.js.erb" @cookbook: nil @local: false @variables: {} @checksum: "fe6bed989662a2d206442d5fa143ce9976ccafd802947c68e5f1f2ee6d19d6eb">'
localhost [2013-01-03T19:20:25+00:00] INFO: new_resource '<template[C:/Temp/bt97/1.8.9-alpha-01133/Deployment/Settings/CHEF.js] @name: "C:/Temp/bt97/1.8.9-alpha-01133/Deployment/Settings/CHEF.js" @noop: nil @before: nil @params: {} @provider: Chef::Provider::Template @allowed_actions: [:nothing, :create, :delete, :touch, :create_if_missing] @action: [:create] @updated: true @updated_by_last_action: false @supports: {} @ignore_failure: false @retries: 0 @retry_delay: 2 @source_line: "c:/chef/cache/cookbooks/Wiggle_Billing/recipes/default.rb:32:in `from_file'" @elapsed_time: 0 @resource_name: :template @path: "C:/Temp/bt97/1.8.9-alpha-01133/Deployment/Settings/CHEF.js" @backup: 5 @diff: "--- <snip />" @source: "CHEF.js.erb" @cookbook: nil @local: false @variables: {} @cookbook_name: "Wiggle_Billing" @recipe_name: "default" @checksum: "fe6bed989662a2d206442d5fa143ce9976ccafd802947c68e5f1f2ee6d19d6eb" @owner: 0 @group: 0 @mode: 420 @rights: nil @deny_rights: nil @inherits: nil>'
And then I get the same exception Must specify username, group or SID: 0
Archive powered by MHonArc 2.6.16.