+!

On 20 January 2011 03:05, James Turnbull <[email protected]> wrote:
>
> Signed-off-by: James Turnbull <[email protected]>
> ---
> Local-branch: tickets/master/5873
>  lib/facter/virtual.rb |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/lib/facter/virtual.rb b/lib/facter/virtual.rb
> index a8afb60..2b1db89 100644
> --- a/lib/facter/virtual.rb
> +++ b/lib/facter/virtual.rb
> @@ -30,7 +30,7 @@ Facter.add("virtual") do
>                 result = "xenu"
>             end
>
> -            if FileTest.exists?("/proc/xen/capabilities")
> +            if FileTest.readable?("/proc/xen/capabilities")
>                 txt = Facter::Util::Resolution.exec("cat 
> /proc/xen/capabilities")
>                 if txt =~ /control_d/i
>                     result = "xen0"
> @@ -78,7 +78,7 @@ Facter.add("virtual") do
>         result
>     end
>  end
> -
> +
>  Facter.add("is_virtual") do
>     confine :kernel => %w{Linux FreeBSD OpenBSD SunOS HP-UX}
>
> @@ -86,7 +86,7 @@ Facter.add("is_virtual") do
>         case Facter.value(:virtual)
>         when "xenu", "openvzve", "vmware", "kvm", "vserver", "jail", "zone", 
> "hpvm"
>             "true"
> -        else
> +        else
>             "false"
>         end
>     end
> --
> 1.7.3.4
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Puppet Developers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/puppet-dev?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to