Add check if Gem is defined#579
Conversation
On e.g. Ubuntu 12.04 LTS Gem is not there by default so i added a check to not fail in that fact if this is the case.
|
@sulaweyo What version of rubygems and ruby are you running? It sounds weird that any installation of puppet (far enough to run facter) on any OS would not have Gem installed and defined. |
|
It popped up in our CI. It was some Ubuntu 12.04 LTS which did not have all current updates in (for a bunch of reasons). Others worked fine so it's most likely because of missing updates but still i'd say to check if Gem it there is never wrong to do. Sorry i can not say which exact version was in there. Most likely the latest puppet version in ubuntu repos which was something around 3.4. As this failed my puppet runs i just added the check and wanted to make sure others don't run into this as well. |
|
@sulaweyo Sounds good. I agree that it's not a significant change to add a check. Thanks! |
On e.g. Ubuntu 12.04 LTS Gem is not there by default so i added a check to not fail in that fact if this is the case.