summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-12-11 08:52:48 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2015-12-14 12:51:58 -0800
commitfcddd49c722bce14ccb889dd61c919993e361ae4 (patch)
tree17712ac7d9728c8ca142e83dfd48eb234c5aae44
parentcf522b0da066e34a843646301dfecb8f5360329e (diff)
downloadchef-fcddd49c722bce14ccb889dd61c919993e361ae4.tar.gz
why is 'identity' different than 'name_property'?
-rw-r--r--lib/chef/resource/file.rb2
-rw-r--r--spec/unit/resource/cookbook_file_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/file.rb b/lib/chef/resource/file.rb
index 1f50e65b4b..ba55cb15a5 100644
--- a/lib/chef/resource/file.rb
+++ b/lib/chef/resource/file.rb
@@ -53,7 +53,7 @@ class Chef
property :content, [ String, nil ], desired_state: false
property :backup, [ Integer, false ], desired_state: false, default: 5
property :checksum, [ String, nil ], regex: /^[a-zA-Z0-9]{64}$/
- property :path, String, name_property: true
+ property :path, String, name_property: true, identity: true
property :diff, [ String, nil ], desired_state: false
property :atomic_update, [ true, false ], desired_state: false, default: Chef::Config[:file_atomic_update]
property :force_unlink, [ true, false ], desired_state: false, default: false
diff --git a/spec/unit/resource/cookbook_file_spec.rb b/spec/unit/resource/cookbook_file_spec.rb
index 834e08bba4..bd437893ce 100644
--- a/spec/unit/resource/cookbook_file_spec.rb
+++ b/spec/unit/resource/cookbook_file_spec.rb
@@ -1,7 +1,7 @@
#
# Author:: Daniel DeLeo (<dan@opscode.com>)
# Author:: Tyler Cloke (<tyler@opscode.com>)
-# Copyright:: Copyright (c) 2010 Opscode, Inc.
+# Copyright:: Copyright (c) 2010-2015 Chef Software, Inc.
#p License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");