diff --git a/library/cloud/digital_ocean_domain b/library/cloud/digital_ocean_domain index 21a9132381..ef9338c176 100644 --- a/library/cloud/digital_ocean_domain +++ b/library/cloud/digital_ocean_domain @@ -21,7 +21,7 @@ module: digital_ocean_domain short_description: Create/delete a DNS record in DigitalOcean description: - Create/delete a DNS record in DigitalOcean. -version_added: "1.4" +version_added: "1.6" options: state: description: @@ -236,7 +236,7 @@ def main(): except (DoError, Exception) as e: module.fail_json(msg=str(e)) -# this is magic, see lib/ansible/module_common.py -#<> +# import module snippets +from ansible.module_utils.basic import * main() diff --git a/library/cloud/digital_ocean_droplet b/library/cloud/digital_ocean_droplet index b59d79ce60..d8ec1929cc 100644 --- a/library/cloud/digital_ocean_droplet +++ b/library/cloud/digital_ocean_droplet @@ -21,7 +21,7 @@ module: digital_ocean_droplet short_description: Create/delete a droplet in DigitalOcean description: - Create/delete a droplet in DigitalOcean and optionally waits for it to be 'running'. -version_added: "1.4" +version_added: "1.6" options: state: description: @@ -314,7 +314,7 @@ def main(): except (DoError, Exception) as e: module.fail_json(msg=str(e)) -# this is magic, see lib/ansible/module_common.py -#<> +# import module snippets +from ansible.module_utils.basic import * main() diff --git a/library/cloud/digital_ocean_sshkey b/library/cloud/digital_ocean_sshkey index 19305c1e42..8ae7af4779 100644 --- a/library/cloud/digital_ocean_sshkey +++ b/library/cloud/digital_ocean_sshkey @@ -21,7 +21,7 @@ module: digital_ocean_sshkey short_description: Create/delete an SSH key in DigitalOcean description: - Create/delete an SSH key. -version_added: "1.4" +version_added: "1.6" options: state: description: @@ -172,7 +172,7 @@ def main(): except (DoError, Exception) as e: module.fail_json(msg=str(e)) -# this is magic, see lib/ansible/module_common.py -#<> +# import module snippets +from ansible.module_utils.basic import * main()