From f3c39e40d7b246cea9015cd4f1e7f9c183e15282 Mon Sep 17 00:00:00 2001 From: James Page Date: Thu, 6 Dec 2012 21:33:28 +0000 Subject: [PATCH] Fixed problem with get_ip validation --- hooks/nova-compute-common | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hooks/nova-compute-common b/hooks/nova-compute-common index 34a4f025..17781938 100755 --- a/hooks/nova-compute-common +++ b/hooks/nova-compute-common @@ -90,8 +90,10 @@ function configure_network_manager { local private_address=$(get_ip `unit-get private-address`) # Check to ensure we can actually resolve # the local unit IP address - [[ -n $private_address ]] || juju-log "Unable to resolve local IP address" \ - && exit 1 + [[ -n $private_address ]] || { + juju-log "Unable to resolve local IP address" + exit 1 + } # Store the network manager and quantum plugin # for use in later hook invocations