|
|
@ -291,6 +291,7 @@ func UnlockLockable(ctx * GraphContext, lockable Lockable, node GraphNode, node_
|
|
|
|
if node == nil || lockable == nil{
|
|
|
|
if node == nil || lockable == nil{
|
|
|
|
panic("Cannot unlock without a specified node and lockable")
|
|
|
|
panic("Cannot unlock without a specified node and lockable")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ctx.Log.Logf("lockable", "Unlocking %s", lockable.ID())
|
|
|
|
_, err := UpdateStates(ctx, []GraphNode{lockable}, func(states []NodeState) ([]NodeState, interface{}, error) {
|
|
|
|
_, err := UpdateStates(ctx, []GraphNode{lockable}, func(states []NodeState) ([]NodeState, interface{}, error) {
|
|
|
|
if lockable.ID() == node.ID() {
|
|
|
|
if lockable.ID() == node.ID() {
|
|
|
|
if node_state != nil {
|
|
|
|
if node_state != nil {
|
|
|
|