Re: [Puppet Users] Parameters to Puppet Task

2020-06-30 Thread Martin Alfke
Hi Valayil, You seem to miss loading the stdin json in your task: https://puppet.com/docs/bolt/latest/writing_tasks.html#no-op-task-example #!/usr/bin/env python import json import sys params = json.load(sys.stdin) Hth,

[Puppet Users] Parameters to Puppet Task

2020-06-29 Thread Valayil Abraham
I have a python task in Puppet. Passing a parameter into the task. Need to check the parameter in the code. This what the code check looks like if {params['date'] == "yesterday"}: print("Yesterday") else: print("Not Yesterday"} The if statement doesn't work when run from Puppet Console. Prin