コンテンツ付きのレシピがあります:
echo_example = shell_out("echo "line 1\nline 2")
if echo_example.exitstatus == 0 && echo_example
node.rm('test')
node.set['test'] = [echo_example.stdout.chomp]
end
ナイフでの属性出力は次のとおりです。
"test": [
"line 1\nline 2"
]
以下のナイフを使用してこの出力を取得する方法は?
"test": [
"line 1",
"line 2"
]
ありがとう