diff options
author | Thom May <thom@may.lt> | 2015-12-15 10:24:21 +0000 |
---|---|---|
committer | Thom May <thom@may.lt> | 2015-12-15 10:24:21 +0000 |
commit | 33aba5c6cc2d028223732bb3802504a95be9b0d8 (patch) | |
tree | f2425533f33e6e2d2f2c76f324ce0323f6159695 /lib/chef/node.rb | |
parent | fbf1f7d21c059d75b9978b34f9b9b5021c6dbfa3 (diff) | |
parent | 54799d8d25ed4565177f2a752088a220220c7344 (diff) | |
download | chef-33aba5c6cc2d028223732bb3802504a95be9b0d8.tar.gz |
Merge pull request #4309 from chef/lcg/fix-tags-and-set-unless
tags always an array; fix set_unless
Diffstat (limited to 'lib/chef/node.rb')
-rw-r--r-- | lib/chef/node.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/chef/node.rb b/lib/chef/node.rb index b04e607624..0c13e5474a 100644 --- a/lib/chef/node.rb +++ b/lib/chef/node.rb @@ -1,9 +1,8 @@ -# # Author:: Adam Jacob (<adam@opscode.com>) # Author:: Christopher Brown (<cb@opscode.com>) # Author:: Christopher Walters (<cw@opscode.com>) # Author:: Tim Hinderliter (<tim@opscode.com>) -# Copyright:: Copyright (c) 2008-2011 Opscode, Inc. +# Copyright:: Copyright (c) 2008-2015 Chef Software, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -372,7 +371,7 @@ class Chef # Lazy initializer for tags attribute def tags - normal[:tags] = [] unless attribute?(:tags) + normal[:tags] = Array(normal[:tags]) normal[:tags] end |