From 11b0d58fa081cd9a27c272244a0d119acc81f32e Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Mon, 1 Oct 2018 08:43:49 -0700 Subject: [PATCH] Include communicator on call --- plugins/guests/redhat/cap/change_host_name.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/guests/redhat/cap/change_host_name.rb b/plugins/guests/redhat/cap/change_host_name.rb index 37c8912a8..5ceb63665 100644 --- a/plugins/guests/redhat/cap/change_host_name.rb +++ b/plugins/guests/redhat/cap/change_host_name.rb @@ -31,7 +31,7 @@ module VagrantPlugins restart_command = "service network restart" - if systemd? + if systemd?(comm) if systemd_networkd?(comm) restart_command = "systemctl restart systemd-networkd.service" elsif systemd_controlled?(comm, "NetworkManager.service")