{"action":"created","issue":{"url":"https://api.github.com/repos/chef-cookbooks/ufw/issues/32","repository_url":"https://api.github.com/repos/chef-cookbooks/ufw","labels_url":"https://api.github.com/repos/chef-cookbooks/ufw/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/chef-cookbooks/ufw/issues/32/comments","events_url":"https://api.github.com/repos/chef-cookbooks/ufw/issues/32/events","html_url":"https://github.com/chef-cookbooks/ufw/issues/32","id":273708679,"number":32,"title":"Databag recipe execution error","user":{"login":"JustDolanIt","id":7023470,"avatar_url":"https://avatars2.githubusercontent.com/u/7023470?v=4","gravatar_id":"","url":"https://api.github.com/users/JustDolanIt","html_url":"https://github.com/JustDolanIt","followers_url":"https://api.github.com/users/JustDolanIt/followers","following_url":"https://api.github.com/users/JustDolanIt/following{/other_user}","gists_url":"https://api.github.com/users/JustDolanIt/gists{/gist_id}","starred_url":"https://api.github.com/users/JustDolanIt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustDolanIt/subscriptions","organizations_url":"https://api.github.com/users/JustDolanIt/orgs","repos_url":"https://api.github.com/users/JustDolanIt/repos","events_url":"https://api.github.com/users/JustDolanIt/events{/privacy}","received_events_url":"https://api.github.com/users/JustDolanIt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-14T08:42:10Z","updated_at":"2017-12-23T06:06:28Z","closed_at":null,"author_association":"NONE","body":"### Cookbook version\r\n3.1.0\r\n\r\n### Chef-client version\r\n13.6.4\r\n\r\n### Platform Details\r\nUbuntu 16.04\r\n\r\n### Scenario:\r\nTrying to use **ufw::databag** recipe, but get error on chef run\r\n\r\n### Steps to Reproduce:\r\nCreate databag item:\r\n\r\n```\r\n{\r\n  \"id\": \"test\",\r\n  \"rules\": [\r\n    {\"tinc\": {\r\n        \"port\": \"655\"\r\n    }},\r\n    {\"https\": {\r\n        \"port\": \"443\"\r\n    }}\r\n  ]\r\n}\r\n```\r\n\r\n### Expected Result:\r\nSet rules on host with role **test**\r\n\r\n### Actual Result:\r\n```\r\n================================================================================\r\nRecipe Compile Error in /var/chef/cache/cookbooks/role_infrastructure_scatt/recipes/default.rb\r\n================================================================================\r\n\r\nNoMethodError\r\n-------------\r\nundefined method `concat' for {}:Chef::Node::VividMash\r\n\r\nCookbook Trace:\r\n---------------\r\n  /var/chef/cache/cookbooks/ufw/recipes/databag.rb:54:in `block in from_file'\r\n  /var/chef/cache/cookbooks/ufw/recipes/databag.rb:47:in `each'\r\n  /var/chef/cache/cookbooks/ufw/recipes/databag.rb:47:in `from_file'\r\n  /var/chef/cache/cookbooks/role_common_scatt/recipes/default.rb:8:in `from_file'\r\n  /var/chef/cache/cookbooks/role_infrastructure/recipes/default.rb:1:in `from_file'\r\n\r\nRelevant File Content:\r\n----------------------\r\n/var/chef/cache/cookbooks/ufw/recipes/databag.rb:\r\n\r\n 47:  rlist.each do |entry|\r\n 48:    Chef::Log.debug \"ufw::databag: \\\"#{entry}\\\"\"\r\n 49:    next unless fw_db.member?(entry)\r\n 50:\r\n 51:    # add the list of firewall rules to the current list\r\n 52:    item = data_bag_item('firewall', entry)\r\n 53:    rules = item['rules']\r\n 54>>   node.normal['firewall']['rules'].concat(rules) unless rules.nil?\r\n 55:  end\r\n 56:\r\n 57:  # now go apply the rules\r\n 58:  include_recipe 'ufw::default'\r\n 59:\r\n\r\nSystem Info:\r\n------------\r\nchef_version=13.6.4\r\nplatform=ubuntu\r\nplatform_version=16.04\r\nruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux]\r\nprogram_name=chef-client worker: ppid=11672;start=11:20:49;\r\nexecutable=/opt/chef/bin/chef-client\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/chef-cookbooks/ufw/issues/comments/353709406","html_url":"https://github.com/chef-cookbooks/ufw/issues/32#issuecomment-353709406","issue_url":"https://api.github.com/repos/chef-cookbooks/ufw/issues/32","id":353709406,"user":{"login":"SAShapeShifter","id":3599100,"avatar_url":"https://avatars2.githubusercontent.com/u/3599100?v=4","gravatar_id":"","url":"https://api.github.com/users/SAShapeShifter","html_url":"https://github.com/SAShapeShifter","followers_url":"https://api.github.com/users/SAShapeShifter/followers","following_url":"https://api.github.com/users/SAShapeShifter/following{/other_user}","gists_url":"https://api.github.com/users/SAShapeShifter/gists{/gist_id}","starred_url":"https://api.github.com/users/SAShapeShifter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SAShapeShifter/subscriptions","organizations_url":"https://api.github.com/users/SAShapeShifter/orgs","repos_url":"https://api.github.com/users/SAShapeShifter/repos","events_url":"https://api.github.com/users/SAShapeShifter/events{/privacy}","received_events_url":"https://api.github.com/users/SAShapeShifter/received_events","type":"User","site_admin":false},"created_at":"2017-12-23T06:06:28Z","updated_at":"2017-12-23T06:06:28Z","author_association":"NONE","body":"Im getting the same result.\r\nWhere you able to fix the problem.\r\n"}}
{"actor":{"display_login":"SAShapeShifter"}}