Merge lp:~niedbalski/charms/precise/nrpe/lp-1303862 into lp:charms/nrpe

Proposed by Jorge Niedbalski
Status: Merged
Merged at revision: 29
Proposed branch: lp:~niedbalski/charms/precise/nrpe/lp-1303862
Merge into: lp:charms/nrpe
Diff against target: 12 lines (+1/-1)
1 file modified
lib/net.sh (+1/-1)
To merge this branch: bzr merge lp:~niedbalski/charms/precise/nrpe/lp-1303862
Reviewer Review Type Date Requested Status
Marco Ceppi (community) Approve
Review via email: mp+215947@code.launchpad.net

Description of the change

To post a comment you must log in.
Revision history for this message
Marco Ceppi (marcoceppi) wrote :

lgtm

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lib/net.sh'
--- lib/net.sh 2014-03-19 12:20:01 +0000
+++ lib/net.sh 2014-04-15 20:33:40 +0000
@@ -176,7 +176,7 @@
176176
177 if [ ! `ch_is_ip "$CHECK_IP"` ]; then177 if [ ! `ch_is_ip "$CHECK_IP"` ]; then
178 # Try a dig, why not?178 # Try a dig, why not?
179 CHECK_IP=$(dig +short $HOST | awk 'NR==1{ print $1 }')179 CHECK_IP=$(dig +short $HOST | tac | awk 'NR==1{ print $1 }')
180180
181 if [ ! `ch_is_ip "$CHECK_IP"` ]; then181 if [ ! `ch_is_ip "$CHECK_IP"` ]; then
182 return 1182 return 1

Subscribers

People subscribed via source and target branches

to all changes: