Browse Source

[python] Fix global params bug (#7971)

3.0.0/version-upgrade
Devosend 2 years ago committed by GitHub
parent
commit
891b5663a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-python/pydolphinscheduler/src/pydolphinscheduler/core/process_definition.py
  2. 4
      dolphinscheduler-python/pydolphinscheduler/tests/core/test_process_definition.py

2
dolphinscheduler-python/pydolphinscheduler/src/pydolphinscheduler/core/process_definition.py

@ -195,7 +195,7 @@ class ProcessDefinition(Base):
"""Return param json base on self.param."""
# Handle empty dict and None value
if not self.param:
return None
return []
return [
{
"prop": k,

4
dolphinscheduler-python/pydolphinscheduler/tests/core/test_process_definition.py

@ -159,11 +159,11 @@ def test__parse_datetime_not_support_type(val: Any):
[
(
None,
None,
[],
),
(
{},
None,
[],
),
(
{"key1": "val1"},

Loading…
Cancel
Save