Fix failure creating device when MAC is empty
This commit is contained in:
parent
df681072e2
commit
b85c772254
1 changed files with 1 additions and 1 deletions
|
@ -461,7 +461,7 @@ def makedevice(request):
|
||||||
network=Network.objects.filter(intip="No VPN")[0],
|
network=Network.objects.filter(intip="No VPN")[0],
|
||||||
organization=Organization.objects.filter(id=device_organization)[0],
|
organization=Organization.objects.filter(id=device_organization)[0],
|
||||||
vpnconfig = open(CONFIGDIR + "/files/" + device_serial + ".ovpn").read(),
|
vpnconfig = open(CONFIGDIR + "/files/" + device_serial + ".ovpn").read(),
|
||||||
mac = device_mac,
|
mac = device_mac or None,
|
||||||
changed = timezone.now()
|
changed = timezone.now()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue