commit | 1a8513259f89baf627355045549eabf5c955e967 | [log] [tgz] |
---|---|---|
author | Andy Bavier <acb@cs.princeton.edu> | Wed Sep 02 15:25:29 2015 -0400 |
committer | Andy Bavier <acb@cs.princeton.edu> | Wed Sep 02 15:25:29 2015 -0400 |
tree | e5387f5290f87705e2df64ac5d7438a1dfbc3563 | |
parent | 26f84889953bc7f15456a9427f896afe3cf482de [diff] |
Bug fix for wan_mac
diff --git a/xos/cord/models.py b/xos/cord/models.py index 8befa17..995ec4f 100644 --- a/xos/cord/models.py +++ b/xos/cord/models.py
@@ -631,7 +631,7 @@ return None try: (a,b,c,d) = ip.split('.') - wan_mac = "02:42:%2x:%2x:%2x:%2x" % (int(a), int(b), int(c), int(d)) + wan_mac = "02:42:%02x:%02x:%02x:%02x" % (int(a), int(b), int(c), int(d)) except: wan_mac = "Exception" return wan_mac