a5a74b
From c5a88b2c987bda11b102de9ef1fca08191672a36 Mon Sep 17 00:00:00 2001
a5a74b
From: Vitaly Kuznetsov <vkuznets@redhat.com>
a5a74b
Date: Tue, 17 Apr 2018 13:07:53 +0200
a5a74b
Subject: [PATCH 1/3] Revert "azure: Fix publishing of hostname"
a5a74b
a5a74b
RH-Author: Vitaly Kuznetsov <vkuznets@redhat.com>
a5a74b
Message-id: <20180417130754.12918-2-vkuznets@redhat.com>
a5a74b
Patchwork-id: 79658
a5a74b
O-Subject: [RHEL7.6/7.5.z cloud-init PATCH 1/2] Revert "azure: Fix publishing of hostname"
a5a74b
Bugzilla: 1568717
a5a74b
RH-Acked-by: Eduardo Otubo <otubo@redhat.com>
a5a74b
RH-Acked-by: Mohammed Gamal <mgamal@redhat.com>
a5a74b
RH-Acked-by: Cathy Avery <cavery@redhat.com>
a5a74b
a5a74b
Turns out the downstream-only fix doesn't work, revert it.
a5a74b
a5a74b
This reverts commit 7a2f4618ba79ff3f7c4c7d026e645647a3da25d3.
a5a74b
a5a74b
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
a5a74b
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
a5a74b
---
a5a74b
 cloudinit/sources/DataSourceAzure.py | 3 +--
a5a74b
 1 file changed, 1 insertion(+), 2 deletions(-)
a5a74b
a5a74b
diff --git a/cloudinit/sources/DataSourceAzure.py b/cloudinit/sources/DataSourceAzure.py
a5a74b
index a0ebd2b..48a3e1d 100644
a5a74b
--- a/cloudinit/sources/DataSourceAzure.py
a5a74b
+++ b/cloudinit/sources/DataSourceAzure.py
a5a74b
@@ -27,8 +27,7 @@ AGENT_START = ['service', 'walinuxagent', 'start']
a5a74b
 AGENT_START_BUILTIN = "__builtin__"
a5a74b
 BOUNCE_COMMAND = [
a5a74b
     'sh', '-xc',
a5a74b
-    "i=$interface; DHCP_HOSTNAME=$hostname; x=0; "
a5a74b
-    "ifdown $i || x=$?; ifup $i || x=$?; exit $x"
a5a74b
+    "i=$interface; x=0; ifdown $i || x=$?; ifup $i || x=$?; exit $x"
a5a74b
 ]
a5a74b
 # azure systems will always have a resource disk, and 66-azure-ephemeral.rules
a5a74b
 # ensures that it gets linked to this path.
a5a74b
-- 
a5a74b
1.8.3.1
a5a74b