paulbsd-salt/states/tests/init.sls

15 lines
311 B
Plaintext
Raw Normal View History

2021-12-29 15:45:48 +01:00
#!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 {}