From 3c848289a086731a8137a791b530644dcedecc2a Mon Sep 17 00:00:00 2001 From: Romain Dartigues Date: Sun, 19 Apr 2015 19:25:15 +0200 Subject: [PATCH] Issue #1161 DigitalOcean API 2 ssh_key_ids problem * fix documentation: show a valid syntax * make ssh_key_ids a list and not a string --- cloud/digital_ocean/digital_ocean.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cloud/digital_ocean/digital_ocean.py b/cloud/digital_ocean/digital_ocean.py index d99165f4e10..b598d772836 100644 --- a/cloud/digital_ocean/digital_ocean.py +++ b/cloud/digital_ocean/digital_ocean.py @@ -59,7 +59,7 @@ options: - This is the slug of the region you would like your server to be created in. ssh_key_ids: description: - - Optional, array of of ssh_key_ids that you would like to be added to the server. + - Optional, array of of SSH key (numeric) ID that you would like to be added to the server. virtio: description: - "Bool, turn on virtio driver in droplet for improved network and storage I/O." @@ -154,7 +154,7 @@ EXAMPLES = ''' - digital_ocean: > state=present - ssh_key_ids=[id1,id2] + ssh_key_ids=123,456 name=mydroplet api_token=XXX size_id=2gb @@ -398,7 +398,7 @@ def main(): size_id = dict(), image_id = dict(), region_id = dict(), - ssh_key_ids = dict(default=''), + ssh_key_ids = dict(type='list'), virtio = dict(type='bool', default='yes'), private_networking = dict(type='bool', default='no'), backups_enabled = dict(type='bool', default='no'),