provisioners/puppet: use correct error class [GH-4520]