Show More
@@ -101,7 +101,10 b' def _load_ips_ifconfig():' | |||||
101 | for line in lines: |
|
101 | for line in lines: | |
102 | blocks = line.lower().split() |
|
102 | blocks = line.lower().split() | |
103 | if (len(blocks) >= 2) and (blocks[0] == 'inet'): |
|
103 | if (len(blocks) >= 2) and (blocks[0] == 'inet'): | |
104 |
|
|
104 | if "addr:" in blocks[1]: | |
|
105 | addrs.append(blocks[1].split(":")[1]) | |||
|
106 | else: | |||
|
107 | addrs.append(blocks[1]) | |||
105 | _populate_from_list(addrs) |
|
108 | _populate_from_list(addrs) | |
106 |
|
109 | |||
107 |
|
110 |
General Comments 0
You need to be logged in to leave comments.
Login now