{"action":"opened","issue":{"url":"https://api.github.com/repos/tohuwabohu/puppet-duplicity/issues/19","labels_url":"https://api.github.com/repos/tohuwabohu/puppet-duplicity/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/tohuwabohu/puppet-duplicity/issues/19/comments","events_url":"https://api.github.com/repos/tohuwabohu/puppet-duplicity/issues/19/events","html_url":"https://github.com/tohuwabohu/puppet-duplicity/issues/19","id":130381122,"number":19,"title":"Puppet 4 error when `max_full_backups` is a Fixnum","user":{"login":"bitfield","id":142262,"avatar_url":"https://avatars.githubusercontent.com/u/142262?v=3","gravatar_id":"","url":"https://api.github.com/users/bitfield","html_url":"https://github.com/bitfield","followers_url":"https://api.github.com/users/bitfield/followers","following_url":"https://api.github.com/users/bitfield/following{/other_user}","gists_url":"https://api.github.com/users/bitfield/gists{/gist_id}","starred_url":"https://api.github.com/users/bitfield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitfield/subscriptions","organizations_url":"https://api.github.com/users/bitfield/orgs","repos_url":"https://api.github.com/users/bitfield/repos","events_url":"https://api.github.com/users/bitfield/events{/privacy}","received_events_url":"https://api.github.com/users/bitfield/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-01T14:52:26Z","updated_at":"2016-02-01T14:52:26Z","closed_at":null,"body":"The example profile in the README:\r\n\r\n\tduplicity::profile { 'system':\r\n\t  full_if_older_than => '7D',\r\n\t  max_full_backups   => 2,\r\n\t  cron_hour          => '4',\r\n\t  cron_minute        => '0',\r\n\t}\r\n\t\r\ngives this error with Puppet 4.3:\r\n\r\n\tError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Failed to parse template duplicity/etc/duply/conf.erb:\r\n\t  Filepath: /etc/puppet/modules/duplicity/templates/etc/duply/conf.erb\r\n\t  Line: 113\r\n\t  Detail: undefined method `empty?' for 2:Fixnum\r\n\t  \r\nThe template is testing `max_full_backups.empty?`, but the value is a Fixnum, which doesn't support `.empty?`. Quoting the value fixes this problem."}}