Require device firmware to be rebuilt after device configuration change
This commit is contained in:
parent
ddbffd3bf7
commit
dbde49fbf5
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue