|
|
@ -309,9 +309,11 @@ func LockResources(event Event) error {
|
|
|
|
for _, resource := range(locked_resources) {
|
|
|
|
for _, resource := range(locked_resources) {
|
|
|
|
UnlockResource(resource, event)
|
|
|
|
UnlockResource(resource, event)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
log.Logf("event", "RESOURCE_LOCK_FAIL for %s: %s", event.Name(), lock_err)
|
|
|
|
return lock_err
|
|
|
|
return lock_err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log.Logf("event", "RESOURCE_LOCK_SUCCESS for %s", event.Name())
|
|
|
|
signal := NewDownSignal(event, "locked")
|
|
|
|
signal := NewDownSignal(event, "locked")
|
|
|
|
SendUpdate(event, signal)
|
|
|
|
SendUpdate(event, signal)
|
|
|
|
|
|
|
|
|
|
|
|