MCPcopy
hub / github.com/trailofbits/algo / create_stackscript

Function create_stackscript

library/linode_stackscript_v4.py:19–25  ·  view source on GitHub ↗

Creates a stackscript and handles return format.

(module, client, **kwargs)

Source from the content-addressed store, hash-verified

17
18
19def create_stackscript(module, client, **kwargs):
20 """Creates a stackscript and handles return format."""
21 try:
22 response = client.linode.stackscript_create(**kwargs)
23 return response._raw_json
24 except Exception as exception:
25 module.fail_json(msg="Unable to query the Linode API. Saw: %s" % exception)
26
27
28def stackscript_available(module, client):

Callers 1

mainFunction · 0.85

Calls 1

fail_jsonMethod · 0.80

Tested by

no test coverage detected