##// END OF EJS Templates
Use `startswith` instead of `in`
James Porter -
Show More
@@ -101,7 +101,7 b' def _load_ips_ifconfig():'
101 101 for line in lines:
102 102 blocks = line.lower().split()
103 103 if (len(blocks) >= 2) and (blocks[0] == 'inet'):
104 if "addr:" in blocks[1]:
104 if blocks[1].startswith("addr:"):
105 105 addrs.append(blocks[1].split(":")[1])
106 106 else:
107 107 addrs.append(blocks[1])
General Comments 0
You need to be logged in to leave comments. Login now