Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit a3f2027

Browse files
John Andersenpdxjohnny
authored andcommitted
service: dev: run: Load dict types
Signed-off-by: John Andersen <[email protected]>
1 parent 68c2772 commit a3f2027

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2626
It now correctly only uses the inputs in the parameter set. This fixes a major
2727
performance issue.
2828
- MySQL packaging issue.
29+
- Develop service running one off operations correctly json-loads dict types.
2930
### Removed
3031
- CLI command `operations` removed in favor of `dataflow run`
3132
- Duplicate dataflow diagram code from development service

dffml/service/dev.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,10 @@ def config_get(self, op, key, definition):
175175
# TODO Argparse nargs and Arg and primitives need to be unified
176176
if "Dict" in definition.primitive:
177177
# TODO handle Dict / spec completely
178-
self.logger.ciritical(
178+
self.logger.critical(
179179
"Dict / spec'd arguments are not yet completely handled"
180180
)
181-
value = json.loads(value)
181+
value = json.loads(value[0])
182182
else:
183183
typecast = pydoc.locate(
184184
definition.primitive.replace("List[", "").replace("[", "")

0 commit comments

Comments
 (0)