From f79ef8c3f922e6d467d74c2ac3e8bec9cb2b991a Mon Sep 17 00:00:00 2001 From: Brinda Santh Date: Tue, 23 Apr 2019 16:06:54 +0530 Subject: Rework remote command arguments Change-Id: Ibd24ce87ed67aee6ae1a66fc9ec6af35bee5008a Issue-ID: CCSDK-1215 Signed-off-by: Brinda Santh --- .../remote_scripts/Definitions/node_types.json | 2 +- .../remote_scripts/Definitions/remote_scripts.json | 16 +++++++++++----- .../node_type/component-remote-python-executor.json | 2 +- 3 files changed, 13 insertions(+), 7 deletions(-) (limited to 'components/model-catalog') diff --git a/components/model-catalog/blueprint-model/test-blueprint/remote_scripts/Definitions/node_types.json b/components/model-catalog/blueprint-model/test-blueprint/remote_scripts/Definitions/node_types.json index e5b8b3062..a66e3bc9d 100644 --- a/components/model-catalog/blueprint-model/test-blueprint/remote_scripts/Definitions/node_types.json +++ b/components/model-catalog/blueprint-model/test-blueprint/remote_scripts/Definitions/node_types.json @@ -46,7 +46,7 @@ }, "packages": { "description": "Packages to install based on type.", - "required": true, + "required": false, "type" : "list", "entry_schema" : { "type" : "dt-system-packages" diff --git a/components/model-catalog/blueprint-model/test-blueprint/remote_scripts/Definitions/remote_scripts.json b/components/model-catalog/blueprint-model/test-blueprint/remote_scripts/Definitions/remote_scripts.json index 48992bd72..4c3ece381 100644 --- a/components/model-catalog/blueprint-model/test-blueprint/remote_scripts/Definitions/remote_scripts.json +++ b/components/model-catalog/blueprint-model/test-blueprint/remote_scripts/Definitions/remote_scripts.json @@ -27,9 +27,14 @@ ], "dsl_definitions": { "execute-argument-properties": { - "input": { - "get_input": "input" - } + "input": "data" + }, + "remote-argument-properties": { + "arg-0": "-a", + "arg-1": "sample-data 1", + "arg-4": "sample-data 4", + "arg-3": "sample-data 3", + "arg-2": "-b" } }, "topology_template": { @@ -119,7 +124,7 @@ "primary": "component-script" }, "inputs": { - "command": "python SamplePython.py $input", + "command": "python SamplePython.py", "packages": [ { "type": "pip", @@ -128,7 +133,8 @@ ] } ], - "argument-properties": "*execute-argument-properties" + "argument-properties": "*remote-argument-properties", + "dynamic-properties": "*execute-argument-properties" } } } diff --git a/components/model-catalog/definition-type/starter-type/node_type/component-remote-python-executor.json b/components/model-catalog/definition-type/starter-type/node_type/component-remote-python-executor.json index 09b371c22..e14b63e58 100644 --- a/components/model-catalog/definition-type/starter-type/node_type/component-remote-python-executor.json +++ b/components/model-catalog/definition-type/starter-type/node_type/component-remote-python-executor.json @@ -44,7 +44,7 @@ }, "packages": { "description": "Packages to install based on type.", - "required": true, + "required": false, "type" : "list", "entry_schema" : { "type" : "dt-system-packages" -- cgit 1.2.3-korg