Skip to content

Commit 7a2fc6c

Browse files
committed
Refs #38173 - correct variable name to ntp_server
Fixes: c9d6db8
1 parent 799d5f7 commit 7a2fc6c

File tree

1 file changed

+3
-3
lines changed
  • app/views/unattended/provisioning_templates/snippet

1 file changed

+3
-3
lines changed

app/views/unattended/provisioning_templates/snippet/ntp.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ echo "Updating system time"
4646
-%>
4747
<% if use_ntp -%>
4848
yum -y install ntpdate
49-
<% if ntp-server -%>
49+
<% if ntp_server -%>
5050
<% if ntp_server.respond_to?(:join) -%>
51-
/usr/sbin/ntpdate -sub <%= ntp-server.first %>
51+
/usr/sbin/ntpdate -sub <%= ntp_server.first %>
5252
<% else -%>
53-
/usr/sbin/ntpdate -sub <%= ntp-server %>
53+
/usr/sbin/ntpdate -sub <%= ntp_server %>
5454
<% end -%>
5555
<% end -%>
5656
systemctl enable --now ntpd

0 commit comments

Comments
 (0)