I am having some difficulty setting up a simple job. I found an example for setting up the “ec2x.sms_format_config” as a scheduled job, but I am not sure what I’m doing wrong when adding parameter of ‘value=1’. If I add it in the ‘arg’ box like below, I get an error:
File “/var/cache/salt/minion/extmods/modules/ec2x.py”, line 887, in sms_format_config
return query(“AT+CMGF={:d}”.format(value))
If I try ec2x.sms_format_config value=1 in the Function box, I get this following error continously:
I have tried several combinations with single quotes, double quotes, value=‘1’, just 1, etc., but Nothing has worked for me. Can someone please guide me what I am doing wrong? I am totally new to this, and this is my first post.
I think you just need to remove the single quotes, and move the argument from args to kwargs.
The kwargs field should have one line and look like this.
I was never able to get ec2x.sms_format_config function to work as a job. I ended up using ec2x.query ‘at+cmgf=1’. Something might be wrong with the sms_format_config function.