diff options
author | Daniel DeLeo <dan@opscode.com> | 2010-07-20 14:45:30 -0700 |
---|---|---|
committer | Daniel DeLeo <dan@opscode.com> | 2010-07-20 14:45:30 -0700 |
commit | 07d1b85ae761baafa2388c995d2821aa9b6e2c1e (patch) | |
tree | 8d76da72fe448828377fdf555820f2ab3dbda4b9 /chef/lib/chef/exceptions.rb | |
parent | 74381420c937f98391c5f55f96ef9b7ed9b765d2 (diff) | |
download | chef-07d1b85ae761baafa2388c995d2821aa9b6e2c1e.tar.gz |
[CHEF-1474] never save the node when the attributes are wrong
* The node does need to be saved after its run list is updated, or else
it could fetch the wrong set of cookbooks. This is done (kinda janky)
in Chef::Client#build_node
* Chef::Client objects will be recreated for each run, so no need to
workaround saved state issues
* if a node doesn't exist, it is created at the beginning of the run,
so Chef::Client doesn't need to track if it's saved or not.
Diffstat (limited to 'chef/lib/chef/exceptions.rb')
-rw-r--r-- | chef/lib/chef/exceptions.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chef/lib/chef/exceptions.rb b/chef/lib/chef/exceptions.rb index 8951553778..fc40c44c65 100644 --- a/chef/lib/chef/exceptions.rb +++ b/chef/lib/chef/exceptions.rb @@ -30,6 +30,7 @@ class Chef class UnsupportedAction < RuntimeError; end class MissingLibrary < RuntimeError; end class MissingRole < RuntimeError; end + class CannotDetermineNodeName < RuntimeError; end class User < RuntimeError; end class Group < RuntimeError; end class Link < RuntimeError; end |