Creates a stackscript and handles return format.
(module, client, **kwargs)
| 17 | |
| 18 | |
| 19 | def 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 | |
| 28 | def stackscript_available(module, client): |