Skip to content

Commit 36b1b9e

Browse files
authored
Fix small errors (#75)
* fix error check * fix exe optional parameter
1 parent b010605 commit 36b1b9e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/actinia_module_plugin/api/processing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def set_actinia_modules(
101101
module_pc = fillTemplateFromProcessChain(
102102
module["module"],
103103
kwargs,
104-
)["list"]
104+
)
105105
if isinstance(module_pc, str):
106106
# then return value is a missing attribute
107107
msg = (
@@ -118,7 +118,7 @@ def set_actinia_modules(
118118
ac_module_pc = set_actinia_modules(
119119
self,
120120
rdc,
121-
module_pc,
121+
module_pc["list"],
122122
grass_module_list,
123123
actinia_module_list,
124124
)

src/actinia_module_plugin/core/modules/actinia_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def transformPlaceholder(self, placeholderCollector):
386386
exe_param = {}
387387
exe_param["name"] = param
388388
exe_param["description"] = "Simple parameter from executable"
389-
exe_param["required"] = True
389+
exe_param["optional"] = False
390390
exe_param["schema"] = {"type": "string"}
391391
add_param_description(exe_param, "exe", dict())
392392
self.vm_params.append(exe_param)

0 commit comments

Comments
 (0)