From 76e57ed17dc735cc1357c986bd3c19c969a2e176 Mon Sep 17 00:00:00 2001 From: Maddie Ford Date: Fri, 2 Feb 2024 17:41:22 -0800 Subject: [PATCH] Fix publish hostname paramters --- azurelinuxagent/common/osutil/redhat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurelinuxagent/common/osutil/redhat.py b/azurelinuxagent/common/osutil/redhat.py index c922114bf..a9a103477 100644 --- a/azurelinuxagent/common/osutil/redhat.py +++ b/azurelinuxagent/common/osutil/redhat.py @@ -266,7 +266,7 @@ def check_and_recover_nic_state(self, ifname): # TODO: Implement and test a way to recover the network interface for RedhatOSModernUtil pass - def publish_hostname(self, hostname): + def publish_hostname(self, hostname, recover_nic=False): # RedhatOSUtil was updated to conditionally run NetworkManager restart in response to a race condition between # NetworkManager restart and the agent restarting the network interface during publish_hostname. Keeping the # NetworkManager restart in RedhatOSModernUtil because the issue was not reproduced on these versions.