--
You received this message because you are subscribed to a topic in the Google Groups "rundeck-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rundeck-discuss/jUCr0hXNlWU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rundeck-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/f8232aed-4341-4609-9a22-bf997a84b420n%40googlegroups.com.
<JSONTest.yaml>
Hey Rich,
I see, it seems to be a plugin limitation, could you open a new issue here?
But I found a “dirty” workaround using the JQ tool.
Basically, JQ could add a character instead of space using the following expression: gsub("\\s";"_")
The command: cat /path/to/your/file.json | jq -Rr 'gsub("\\s";"_")' | jq
Here the Job Definition:
- defaultTab: nodes description: '' executionEnabled: true id: 05419d46-3022-42a6-9823-dca02d7f059c loglevel: INFO name: JSONTest nodeFilterEditable: false plugins: ExecutionLifecycle: null scheduleEnabled: true sequence: commands: - fileExtension: .sh interpreterArgsQuoted: false plugins: LogFilter: - config: filter: . logData: 'true' prefix: result type: json-mapper script: cat /Users/user/Downloads/myfile.json | jq -Rr 'gsub("\\s";"_")' | jq scriptInterpreter: /bin/bash - exec: echo ${data.char_name} keepgoing: false strategy: node-first uuid: 05419d46-3022-42a6-9823-dca02d7f059cRegards.