From c168c8123c0ff200bfd36f75f88ea3698bc01f39 Mon Sep 17 00:00:00 2001 From: Kiersten Stokes Date: Tue, 25 Oct 2022 09:28:31 -0500 Subject: [PATCH] Bypass instance conversion if needed for DisableNodeCaching --- elyra/pipeline/component_parameter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/elyra/pipeline/component_parameter.py b/elyra/pipeline/component_parameter.py index fa83b1d5d..be29e51c1 100644 --- a/elyra/pipeline/component_parameter.py +++ b/elyra/pipeline/component_parameter.py @@ -295,6 +295,8 @@ def __init__(self, selection, **kwargs): @classmethod def get_single_instance(cls, value: Optional[Any] = None) -> ElyraProperty | None: + if isinstance(value, ElyraProperty): + return value # value is already a single instance, no further action required return DisableNodeCaching(selection=value) @classmethod