{"action":"created","issue":{"url":"https://api.github.com/repos/mosen/puppet-cups/issues/44","labels_url":"https://api.github.com/repos/mosen/puppet-cups/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/mosen/puppet-cups/issues/44/comments","events_url":"https://api.github.com/repos/mosen/puppet-cups/issues/44/events","html_url":"https://github.com/mosen/puppet-cups/issues/44","id":58343271,"number":44,"title":"Error: Could not prefetch printer provider 'cups': undefined method `include?' for nil:NilClass","user":{"login":"kbotnen","id":1453707,"avatar_url":"https://avatars.githubusercontent.com/u/1453707?v=3","gravatar_id":"","url":"https://api.github.com/users/kbotnen","html_url":"https://github.com/kbotnen","followers_url":"https://api.github.com/users/kbotnen/followers","following_url":"https://api.github.com/users/kbotnen/following{/other_user}","gists_url":"https://api.github.com/users/kbotnen/gists{/gist_id}","starred_url":"https://api.github.com/users/kbotnen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbotnen/subscriptions","organizations_url":"https://api.github.com/users/kbotnen/orgs","repos_url":"https://api.github.com/users/kbotnen/repos","events_url":"https://api.github.com/users/kbotnen/events{/privacy}","received_events_url":"https://api.github.com/users/kbotnen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-20T12:02:17Z","updated_at":"2015-03-25T00:20:58Z","closed_at":null,"body":"Hei,\r\n\r\nI updated code to newest master, and Now I get the following error:\r\n\r\nError: Could not prefetch printer provider 'cups': undefined method `include?' for nil:NilClass\r\n\r\nIt worked without this in an earlier version.\r\n\r\nWorking version: https://gist.github.com/kbotnen/8c52f7b99e759da152a8\r\nErrorenous version: https://gist.github.com/kbotnen/2270d4a8857d657145e6\r\n\r\nDespite the error the printers show up on lpstat -v.\r\n\r\nIf I try to remove a printer I get more errors\r\n\r\n==> precise-gui: Error: Could not prefetch printer provider 'cups': undefined method `include?' for nil:NilClass\r\n==> precise-gui: Notice: /Stage[main]/App::Print/Printer[IT_Print_Ricoh]/ensure: removed\r\n==> precise-gui: Debug: Executing '/usr/sbin/lpadmin -x IT_Print_Ricoh'\r\n==> precise-gui: Error: /Stage[main]/App::Print/Printer[IT_Print_Ricoh]: Could not evaluate: Execution of '/usr/sbin/lpadmin -x IT_Print_Ricoh' returned 1: lpadmin: The printer or class does not exist.\r\n\r\nIt looks like it try to remove the printer even if its not there (which it doesnt know since the prefetch step failed?).\r\n\r\nAll behaviour observed in a vagrant environment, with a Ubuntu 12.04 box.\r\n\r\n- Kristian -"},"comment":{"url":"https://api.github.com/repos/mosen/puppet-cups/issues/comments/85751803","html_url":"https://github.com/mosen/puppet-cups/issues/44#issuecomment-85751803","issue_url":"https://api.github.com/repos/mosen/puppet-cups/issues/44","id":85751803,"user":{"login":"mosen","id":316108,"avatar_url":"https://avatars.githubusercontent.com/u/316108?v=3","gravatar_id":"","url":"https://api.github.com/users/mosen","html_url":"https://github.com/mosen","followers_url":"https://api.github.com/users/mosen/followers","following_url":"https://api.github.com/users/mosen/following{/other_user}","gists_url":"https://api.github.com/users/mosen/gists{/gist_id}","starred_url":"https://api.github.com/users/mosen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mosen/subscriptions","organizations_url":"https://api.github.com/users/mosen/orgs","repos_url":"https://api.github.com/users/mosen/repos","events_url":"https://api.github.com/users/mosen/events{/privacy}","received_events_url":"https://api.github.com/users/mosen/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T00:20:58Z","updated_at":"2015-03-25T00:20:58Z","body":"The issue has been replicated and I'm working on a fix."}}