Yes, it appears when you have lsb packages installed.
Anyway I checked what I did in other cases and we can avoid both of them and fine a more general and compatible solution.
Check out the $osver[0] variable calculated here, for example:
https://github.com/example42/puppet-yum/blob/master/manifests/repo/epel.pp
it servers a similar purpose, so we can follow that pattern also here.