Bug #10806

Facter 'virtual' has errors when no DISPLAY

Added by Malcolm Howe over 1 year ago. Updated about 1 year ago.

Status:AcceptedStart date:11/14/2011
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:library
Target version:-
Keywords: Affected Facter version:1.6.1
Branch:

Description

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.


Related issues

Related to Facter - Bug #13700: lspci can only determine virtual machines that have graph... Accepted 04/09/2012

History

#1 Updated by Ken Barber over 1 year ago

  • Category set to library
  • Status changed from Unreviewed to Accepted

#2 Updated by Ken Barber over 1 year ago

  • Target version set to 144

#3 Updated by Jeff Weiss about 1 year ago

  • Target version deleted (144)

Also available in: Atom PDF