From b22fcf8753d81515a55e9954be1b4691069d7866 Mon Sep 17 00:00:00 2001 From: Michael Calmer Date: Mon, 21 Oct 2024 16:30:41 +0200 Subject: [PATCH] keep compatible constructor --- src/main/java/com/suse/salt/netapi/calls/LocalCall.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/com/suse/salt/netapi/calls/LocalCall.java b/src/main/java/com/suse/salt/netapi/calls/LocalCall.java index 93acf219e..b1c14f4e7 100644 --- a/src/main/java/com/suse/salt/netapi/calls/LocalCall.java +++ b/src/main/java/com/suse/salt/netapi/calls/LocalCall.java @@ -62,6 +62,14 @@ public LocalCall(String functionName, Optional> arg, this.executorOptions = executorOptions; } + public LocalCall(String functionName, Optional> arg, + Optional> kwarg, TypeToken returnType, + Optional metadata, Optional timeout, + Optional gatherJobTimeout) { + this(functionName, arg, kwarg, returnType, metadata, timeout, gatherJobTimeout, + Optional.empty(), Optional.empty()); + } + public LocalCall(String functionName, Optional> arg, Optional> kwarg, TypeToken returnType, Optional timeout, Optional gatherJobTimeout) {