From 53d08945b8bf88df86c34929255f765797aa4ad4 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 10 Aug 2021 14:28:50 -0500 Subject: [PATCH] hotfix --- lib/command.rb | 4 ++-- sgx_jmp.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/command.rb b/lib/command.rb index 97f6e12..567cfea 100644 --- a/lib/command.rb +++ b/lib/command.rb @@ -152,8 +152,8 @@ class Command @blk = blk end - def register(blather) - blather.command(:execute?, node: @node, sessionid: nil) do |iq| + def register(blather, guards: [:execute?, node: @node, sessionid: nil]) + blather.command(*guards) do |iq| customer_repo = CustomerRepo.new Execution.new(customer_repo, blather, @format_error, iq).execute(&@blk) end diff --git a/sgx_jmp.rb b/sgx_jmp.rb index 2db02a2..81c7470 100644 --- a/sgx_jmp.rb +++ b/sgx_jmp.rb @@ -391,7 +391,7 @@ Command.new( Command.customer.then do |customer| customer.stanza_from(Command.execution.iq) end - }.register(self).then(&CommandList.method(:register)) + }.register(self, guards: [node: node]).then(&CommandList.method(:register)) end Command.new( -- 2.45.2