From bcabef32e91f9283990a89eb498471beb904d472 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Tue, 11 Mar 2014 15:43:59 -0400 Subject: [PATCH] Fix version_added and snippet imports on new digital ocean modules --- cloud/digital_ocean_domain | 6 +++--- cloud/digital_ocean_droplet | 6 +++--- cloud/digital_ocean_sshkey | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/cloud/digital_ocean_domain b/cloud/digital_ocean_domain index 21a9132381d..ef9338c1765 100644 --- a/cloud/digital_ocean_domain +++ b/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/cloud/digital_ocean_droplet b/cloud/digital_ocean_droplet index b59d79ce605..d8ec1929ccc 100644 --- a/cloud/digital_ocean_droplet +++ b/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/cloud/digital_ocean_sshkey b/cloud/digital_ocean_sshkey index 19305c1e42e..8ae7af47793 100644 --- a/cloud/digital_ocean_sshkey +++ b/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()