f6265e
From 2ea5ccd14def513ced62a03a4b2ac14f58f28d32 Mon Sep 17 00:00:00 2001
f6265e
From: Lars Kellogg-Stedman <lars@redhat.com>
f6265e
Date: Thu, 15 Jun 2017 12:20:39 -0400
f6265e
Subject: azure: ensure that networkmanager hook script runs
f6265e
f6265e
The networkmanager hook script was failing to run due to the changes
f6265e
we made to resolve rhbz#1440831.  This corrects the regression by
f6265e
allowing the NM hook script to run regardless of whether or not
f6265e
cloud-init is "enabled".
f6265e
f6265e
Resolves: rhbz#1460206
f6265e
X-downstream-only: true
f6265e
---
f6265e
 tools/hook-dhclient        | 3 +--
f6265e
 tools/hook-network-manager | 3 +--
f6265e
 tools/hook-rhel.sh         | 3 +--
f6265e
 3 files changed, 3 insertions(+), 6 deletions(-)
f6265e
f6265e
diff --git a/tools/hook-dhclient b/tools/hook-dhclient
f6265e
index 02122f3..181cd51 100755
f6265e
--- a/tools/hook-dhclient
f6265e
+++ b/tools/hook-dhclient
f6265e
@@ -13,8 +13,7 @@ is_azure() {
f6265e
 }
f6265e
 
f6265e
 is_enabled() {
f6265e
-    # only execute hooks if cloud-init is enabled and on azure
f6265e
-    [ -e /run/cloud-init/enabled ] || return 1
f6265e
+    # only execute hooks if cloud-init is running on azure
f6265e
     is_azure
f6265e
 }
f6265e
 
f6265e
diff --git a/tools/hook-network-manager b/tools/hook-network-manager
f6265e
index 67d9044..1d52cad 100755
f6265e
--- a/tools/hook-network-manager
f6265e
+++ b/tools/hook-network-manager
f6265e
@@ -13,8 +13,7 @@ is_azure() {
f6265e
 }
f6265e
 
f6265e
 is_enabled() {
f6265e
-    # only execute hooks if cloud-init is enabled and on azure
f6265e
-    [ -e /run/cloud-init/enabled ] || return 1
f6265e
+    # only execute hooks if cloud-init running on azure
f6265e
     is_azure
f6265e
 }
f6265e
 
f6265e
diff --git a/tools/hook-rhel.sh b/tools/hook-rhel.sh
f6265e
index 513a551..d75767e 100755
f6265e
--- a/tools/hook-rhel.sh
f6265e
+++ b/tools/hook-rhel.sh
f6265e
@@ -13,8 +13,7 @@ is_azure() {
f6265e
 }
f6265e
 
f6265e
 is_enabled() {
f6265e
-    # only execute hooks if cloud-init is enabled and on azure
f6265e
-    [ -e /run/cloud-init/enabled ] || return 1
f6265e
+    # only execute hooks if cloud-init is running on azure
f6265e
     is_azure
f6265e
 }
f6265e
 
f6265e
-- 
f6265e
1.8.3.1
f6265e