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