MCPcopy Index your code
hub / github.com/saltstack/salt / post

Method post

tests/support/pkg.py:2312–2316  ·  view source on GitHub ↗
(self, url, data)

Source from the content-addressed store, hash-verified

2310 }
2311
2312 def post(self, url, data):
2313 post_data = dict(**self.auth_data, **data)
2314 resp = self.session.post(f"{self.api_uri}/run", data=post_data).json()
2315 minion = next(iter(resp["return"][0]))
2316 return resp["return"][0][minion]
2317
2318 def __enter__(self):
2319 self.session.__enter__()

Callers 1

sync_os_labelsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected