Skip to content

Commit

Permalink
http://code.google.com/p/spine-mgmt/issues/detail?id=17
Browse files Browse the repository at this point in the history
  • Loading branch information
rtilder committed May 14, 2008
1 parent 09926d5 commit d45821c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/Spine/Plugin/SystemInfo.pm
Expand Up @@ -208,6 +208,18 @@ sub is_virtual

$fh->close();

# We will do an additional check to see if this is a xen based vm.
# very easy to do as we simply check the existance of /proc/xen
# based on input, I'm setting this to xen, it could be set to something
# like 2 with a pseudo define where 1 = vmware, 2 = xen
my $xen_indicator="/proc/xen";

if ( -d $xen_indicator ) {
$c->{c_is_virtual} = "xen";
}



return PLUGIN_SUCCESS;
}

Expand Down

0 comments on commit d45821c

Please sign in to comment.