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
1=== modified file 'lib/net.sh'
2--- lib/net.sh 2014-03-19 12:20:01 +0000
3+++ lib/net.sh 2014-04-15 20:33:40 +0000
4@@ -176,7 +176,7 @@
5
6 if [ ! `ch_is_ip "$CHECK_IP"` ]; then
7 # Try a dig, why not?
8- CHECK_IP=$(dig +short $HOST | awk 'NR==1{ print $1 }')
9+ CHECK_IP=$(dig +short $HOST | tac | awk 'NR==1{ print $1 }')
10
11 if [ ! `ch_is_ip "$CHECK_IP"` ]; then
12 return 1

Subscribers

People subscribed via source and target branches

to all changes: