MCPcopy Create free account
hub / github.com/StackStorm/st2 / decorate

Function decorate

st2client/st2client/utils/httpclient.py:29–33  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

27
28def add_ssl_verify_to_kwargs(func):
29 def decorate(*args, **kwargs):
30 if isinstance(args[0], HTTPClient) and "https" in getattr(args[0], "root", ""):
31 cacert = getattr(args[0], "cacert", None)
32 kwargs["verify"] = cacert if cacert is not None else False
33 return func(*args, **kwargs)
34
35 return decorate
36

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected