Skip to content

Commit 4acfa3b

Browse files
committed
Merge pull request redhat-openstack#235 from guessi/fix_virtual_detection
fix `is_virtual` detection issue
2 parents f878fa0 + d7a8029 commit 4acfa3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/ntp.conf.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ broadcastclient
3838
server <%= server %><% if @iburst_enable == true -%> iburst<% end %><% if @preferred_servers.include?(server) -%> prefer<% end %>
3939
<% end -%>
4040

41-
<% if scope.lookupvar('::is_virtual') == "false" or @udlc -%>
41+
<% if @is_virtual == "true" or @udlc -%>
4242
# Undisciplined Local Clock. This is a fake driver intended for backup
4343
# and when no outside source of synchronized time is available.
4444
server 127.127.1.0

0 commit comments

Comments
 (0)