From 1aa00ce8eaabe53e13f72316b722a712841d553c Mon Sep 17 00:00:00 2001 From: Matt Summers Date: Thu, 11 Oct 2012 14:28:43 +0100 Subject: Fix is_virtual check in ntp.conf templates is_virtual fact must be checked using a string comparison. The previous logic would resolve true if the is_virtual fact was defined. This meant that on servers where is_virtual was defined as "false", the vm-only snippet was still inserted into the template. --- templates/ntp.conf.el.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/ntp.conf.el.erb') diff --git a/templates/ntp.conf.el.erb b/templates/ntp.conf.el.erb index 88d6d72..fe8a9a5 100644 --- a/templates/ntp.conf.el.erb +++ b/templates/ntp.conf.el.erb @@ -1,4 +1,4 @@ -<% if @is_virtual -%> +<% if @is_virtual == "true" -%> # Keep ntpd from panicking in the event of a large clock skew # when a VM guest is suspended and resumed. tinker panic 0 -- cgit v1.2.3