From 5c86368d55c2f2564a36a2fade5ec1e4193e20ae Mon Sep 17 00:00:00 2001
From: Claudio Pisa <claudio.pisa@garr.it>
Date: Fri, 20 Dec 2019 11:54:25 +0000
Subject: [PATCH] change log and status messages

---
 hooks/install       | 2 +-
 hooks/update-status | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/hooks/install b/hooks/install
index 9d1e072..9222d93 100644
--- a/hooks/install
+++ b/hooks/install
@@ -11,7 +11,7 @@ status-set maintenance "Setting the default gateway"
 GATEWAY="$( config-get gateway )"
 
 if [ -z "$GATEWAY" ]; then
-    juju-log "Gateway option is empty. Exiting..."
+    juju-log "Gateway option is empty."
     status-set blocked "No gateway specified."
     exit 0
 fi
diff --git a/hooks/update-status b/hooks/update-status
index d38f17b..4b70664 100644
--- a/hooks/update-status
+++ b/hooks/update-status
@@ -9,7 +9,8 @@ source inc/common
 GATEWAY="$( config-get gateway )"
 
 if [ -z "$GATEWAY" ]; then
-    juju-log "Gateway option is currently empty."
+    juju-log "Gateway option is empty. Blocking and doing nothing."
+    status-set blocked "No gateway specified."
     exit 0
 fi
 
-- 
GitLab