From 1ec015410d97b764517d0642fa0658ed7781bfe9 Mon Sep 17 00:00:00 2001 From: ABond Date: Mon, 11 Sep 2017 19:44:06 -0400 Subject: [PATCH] digital_ocean_sshkey doc refinement and removal of unused import (#28960) Updated doc examples and removed os import that was unused --- .../modules/cloud/digital_ocean/digital_ocean_sshkey.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/digital_ocean/digital_ocean_sshkey.py b/lib/ansible/modules/cloud/digital_ocean/digital_ocean_sshkey.py index fc120ddee2b..2fe1452f058 100644 --- a/lib/ansible/modules/cloud/digital_ocean/digital_ocean_sshkey.py +++ b/lib/ansible/modules/cloud/digital_ocean/digital_ocean_sshkey.py @@ -59,12 +59,15 @@ requirements: EXAMPLES = ''' - name: "Create ssh key" digital_ocean_sshkey: + oauth_token: "{{ oauth_token }}" name: "My SSH Public Key" - public_key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAQQDDHr/jh2Jy4yALcK4JyWbVkPRaWmhck3IgCoeOO3z1e2dBowLh64QAM+Qb72pxekALga2oi4GvT+TlWNhzPH4V example" + ssh_pub_key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAQQDDHr/jh2Jy4yALcK4JyWbVkPRaWmhck3IgCoeOO3z1e2dBowLh64QAM+Qb72pxekALga2oi4GvT+TlWNhzPH4V example" + state: present register: result - name: "Delete ssh key" digital_ocean_sshkey: + oauth_token: "{{ oauth_token }}" state: "absent" fingerprint: "3b:16:bf:e4:8b:00:8b:b8:59:8c:a9:d3:f0:19:45:fa" ''' @@ -87,7 +90,6 @@ data: ''' import json -import os import hashlib import base64