Require device firmware to be rebuilt after device configuration change

This commit is contained in:
Kumi 2018-12-28 11:06:06 +01:00
parent ddbffd3bf7
commit dbde49fbf5

View file

@ -106,7 +106,7 @@ def hosts(request):
return render(request, "manager/hosts", {"device": device}) return render(request, "manager/hosts", {"device": device})
def mkfirmware(device, path): def mkfirmware(device, path):
if device.firmware and device.firmware > device.model.firmware and glob.glob("%s/%s.bin" % (path, device.id)): if device.firmware and device.firmware > device.model.firmware and device.firmware > device.changed and glob.glob("%s/%s.bin" % (path, device.id)):
return True return True
BEFORE = os.getcwd() BEFORE = os.getcwd()