Fixed problem with get_ip validation

This commit is contained in:
James Page 2012-12-06 21:33:28 +00:00
parent 8b3aafe97f
commit f3c39e40d7
1 changed files with 4 additions and 2 deletions

View File

@ -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