Skip to content

Commit

Permalink
Adding tags to volume module (#347)
Browse files Browse the repository at this point in the history
* Adding tags to volume module

* Generate docs

---------

Co-authored-by: Zhiwei Liang <zliang@akamai.com>
Co-authored-by: Zhiwei Liang <121905282+zliang-akamai@users.noreply.github.com>
  • Loading branch information
3 people authored Apr 28, 2023
1 parent e065bbc commit 55ecfde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/modules/volume.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Manage a Linode Volume.
| `attached` | <center>`bool`</center> | <center>Optional</center> | If true, the volume will be attached to a Linode. Otherwise, the volume will be detached. **(Default: `True`; Updatable)** |
| `wait_timeout` | <center>`int`</center> | <center>Optional</center> | The amount of time, in seconds, to wait for a volume to have the active status. **(Default: `240`)** |
| `source_volume_id` | <center>`int`</center> | <center>Optional</center> | The volume id of the desired volume to clone. |
| `tags` | <center>`list`</center> | <center>Optional</center> | The tags to be attached to the volume. |

## Return Values

Expand Down
5 changes: 5 additions & 0 deletions plugins/modules/volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@
required=False,
description=["The volume id of the desired volume to clone."],
),
tags=SpecField(
type=FieldType.list,
required=False,
description=["The tags to be attached to the volume."],
),
)

SPECDOC_META = SpecDocMeta(
Expand Down

0 comments on commit 55ecfde

Please sign in to comment.