~hp-moonshot/ubuntu/trusty/hp-moonshot/hp-proliant

« back to all changes in this revision

Viewing changes to usr/lib/hp-moonshot/patches/arp_ip_order.patch

  • Committer: Narinder Gupta
  • Date: 2014-09-04 20:37:03 UTC
  • Revision ID: narinder.gupta@canonical.com-20140904203703-2sk67uwbzk9fc4tk
branch a new version for HP proliant systems where there is no power management required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Hot fix for LP: #1310844
2
 
 
3
 
--- /usr/lib/python2.7/dist-packages/provisioningserver/utils/__init__.py       2014-04-16 13:12:54.741041502 -0500
4
 
+++ /usr/lib/python2.7/dist-packages/provisioningserver/utils/__init__.py       2014-04-16 13:13:08.705040814 -0500
5
 
@@ -819,7 +819,7 @@ def find_ip_via_arp(mac):
6
 
 
7
 
     output = call_capture_and_check(['arp', '-n']).split('\n')
8
 
 
9
 
-    for line in output:
10
 
+    for line in sorted(output):
11
 
         columns = line.split()
12
 
         if len(columns) == 5 and columns[2] == mac:
13
 
             return columns[0]