Facter 'virtual' has errors when no DISPLAY
|Keywords:||Affected Facter version:||1.6.1|
On a CentOS 5 system running VMware Workstation 7.1.4 facter 1.6.1 and higher running in cron produces output to STDERR saying “xprop: unable to open display ‘’ …”. The cause appears to be that ‘virtual’ executes vmware -v which produces these errors when there is no DISPLAY environment variable set (or something similar if there is a value set and the display is not reachable). Arguably this is poor behaviour from the vmware command, but none the less that is how it behaves, so it would be better if facter could work round this, possibly throwing away the STDERR from vmware -v, or finding a different way to determine the VMware version, or skipping this test when DISPLAY is not set.