paulbsd-salt/states/tests/init.sls

15 lines
311 B
Python

#!py
import os
import requests
def update_status(url="https://www.paulbsd.com", data={}):
req = requests.request(url=url, method="POST", json=data)
return req.text
def run():
a = update_status(data={"test":"test"})
with open("/tmp/test.txt", "w+") as f:
f.write("abcd")
return {}