{"action":"created","issue":{"url":"https://api.github.com/repos/org-binbab/cookbook-service_factory/issues/3","labels_url":"https://api.github.com/repos/org-binbab/cookbook-service_factory/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/org-binbab/cookbook-service_factory/issues/3/comments","events_url":"https://api.github.com/repos/org-binbab/cookbook-service_factory/issues/3/events","html_url":"https://github.com/org-binbab/cookbook-service_factory/issues/3","id":55211481,"number":3,"title":"Getting ArgumentError when trying to use `service_factory` LWRP","user":{"login":"apetresc","id":14872,"avatar_url":"https://avatars.githubusercontent.com/u/14872?v=3","gravatar_id":"","url":"https://api.github.com/users/apetresc","html_url":"https://github.com/apetresc","followers_url":"https://api.github.com/users/apetresc/followers","following_url":"https://api.github.com/users/apetresc/following{/other_user}","gists_url":"https://api.github.com/users/apetresc/gists{/gist_id}","starred_url":"https://api.github.com/users/apetresc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apetresc/subscriptions","organizations_url":"https://api.github.com/users/apetresc/orgs","repos_url":"https://api.github.com/users/apetresc/repos","events_url":"https://api.github.com/users/apetresc/events{/privacy}","received_events_url":"https://api.github.com/users/apetresc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-22T21:29:29Z","updated_at":"2015-04-12T05:25:02Z","closed_at":null,"body":"The section:\r\n\r\n```ruby\r\nservice_factory \"repairbot\" do\r\n  service_desc \"Cassandra RepairBot\"\r\n  exec \"/opt/repairbot/virtualenv/bin/python /opt/repairbot/repairbot.py\"\r\n  run_user \"root\"\r\n  run_group \"root\"\r\n  action :create\r\nend\r\n```\r\nwhich gets expanded to:\r\n```ruby\r\n    service_factory(\"repairbot\") do\r\n      action :create\r\n      retries 0\r\n      retry_delay 2\r\n      default_guard_interpreter :default\r\n      declared_type :service_factory\r\n      cookbook_name :rubikloud\r\n      recipe_name \"setup_cassandra\"\r\n      service_desc \"Cassandra RepairBot\"\r\n      exec \"/opt/repairbot/virtualenv/bin/python /opt/repairbot/repairbot.py\"\r\n      run_user \"root\"\r\n      run_group \"root\"\r\n    end\r\n```\r\nfails every single time with the error:\r\n```\r\nRecipe: rubikloud::setup_cassandra\r\n  * service_factory[repairbot] action create\r\n    \r\n    ================================================================================\r\n    Error executing action `create` on resource 'service_factory[repairbot]'\r\n    ================================================================================\r\n    \r\n    ArgumentError\r\n    -------------\r\n    wrong number of arguments (2 for 0)\r\n    \r\n    Resource Declaration:\r\n    ---------------------\r\n    # In /home/apetresc/chef-solo/cookbooks-2/rubikloud/recipes/setup_cassandra.rb\r\n    \r\n     62: service_factory \"repairbot\" do\r\n     63:   service_desc \"Cassandra RepairBot\"\r\n     64:   exec \"/opt/repairbot/virtualenv/bin/python /opt/repairbot/repairbot.py\"\r\n     65:   run_user \"root\"\r\n     66:   run_group \"root\"\r\n     67:   action :create\r\n     68: end\r\n```\r\n\r\nI'm quite sure I'm using the attributes correctly, so I have to assume this is some sort of incompatibility with Chef 12?"},"comment":{"url":"https://api.github.com/repos/org-binbab/cookbook-service_factory/issues/comments/91994158","html_url":"https://github.com/org-binbab/cookbook-service_factory/issues/3#issuecomment-91994158","issue_url":"https://api.github.com/repos/org-binbab/cookbook-service_factory/issues/3","id":91994158,"user":{"login":"binarybabel","id":3771540,"avatar_url":"https://avatars.githubusercontent.com/u/3771540?v=3","gravatar_id":"","url":"https://api.github.com/users/binarybabel","html_url":"https://github.com/binarybabel","followers_url":"https://api.github.com/users/binarybabel/followers","following_url":"https://api.github.com/users/binarybabel/following{/other_user}","gists_url":"https://api.github.com/users/binarybabel/gists{/gist_id}","starred_url":"https://api.github.com/users/binarybabel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binarybabel/subscriptions","organizations_url":"https://api.github.com/users/binarybabel/orgs","repos_url":"https://api.github.com/users/binarybabel/repos","events_url":"https://api.github.com/users/binarybabel/events{/privacy}","received_events_url":"https://api.github.com/users/binarybabel/received_events","type":"User","site_admin":false},"created_at":"2015-04-12T05:25:02Z","updated_at":"2015-04-12T05:25:02Z","body":"@benmcrae Sorry again for the delay. A tad hung up with other projects. Should have the necessary Chef deployments complete by Tuesday. Thank you again for your contributions, and patience."}}