Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Added missing LDE argument to disk_create #456

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions linode_api4/objects/linode.py
Original file line number Diff line number Diff line change
Expand Up @@ -1221,6 +1221,9 @@ def disk_create(
root_pass=None,
authorized_keys=None,
authorized_users=None,
disk_encryption: Optional[
Union[InstanceDiskEncryptionType, str]
] = None,
stackscript=None,
**stackscript_args,
):
Expand All @@ -1245,6 +1248,9 @@ def disk_create(
as trusted for the root user. These user's keys
should already be set up, see :any:`ProfileGroup.ssh_keys`
for details.
:param disk_encryption: The disk encryption policy for this Linode.
NOTE: Disk encryption may not currently be available to all users.
:type disk_encryption: InstanceDiskEncryptionType or str
:param stackscript: A StackScript object, or the ID of one, to deploy to this
disk. Requires deploying a compatible image.
:param **stackscript_args: Any arguments to pass to the StackScript, as defined
Expand Down Expand Up @@ -1274,6 +1280,9 @@ def disk_create(
"authorized_users": authorized_users,
}

if disk_encryption is not None:
params["disk_encryption"] = str(disk_encryption)

if image:
params.update(
{
Expand Down