Skip to content

Commit

Permalink
Inventory plugin: restore documentation for oauth_token
Browse files Browse the repository at this point in the history
By completely removing any documentation for api_token / oauth_token,
commit 609df3e suddenly broke support
for reading the auth token from environment variables (which magically
happens to work based on plugin options documentation).

Restore the documentation bits by matching docs fragment. While at it,
also match the documented list of supported env variables which can be
used as auth token sources.

Fixes #315
  • Loading branch information
gizero committed Aug 29, 2023
1 parent 29118ef commit 460a363
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions plugins/inventory/digitalocean.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@
this should always be C(community.digitalocean.digitalocean).
required: true
choices: ['community.digitalocean.digitalocean']
oauth_token:
description:
- DigitalOcean OAuth token.
- Template expressions can be used in this field.
required: true
type: str
aliases: [ api_token ]
env:
- name: DO_API_TOKEN
- name: DO_API_KEY
- name: DO_OAUTH_TOKEN
- name: OAUTH_TOKEN
attributes:
description: >-
Droplet attributes to add as host vars to each inventory host.
Expand Down

0 comments on commit 460a363

Please sign in to comment.