Skip to content

Commit e4214f4

Browse files
Added missing param to disk_create (#456)
1 parent 1d155a9 commit e4214f4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

linode_api4/objects/linode.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,6 +1221,9 @@ def disk_create(
12211221
root_pass=None,
12221222
authorized_keys=None,
12231223
authorized_users=None,
1224+
disk_encryption: Optional[
1225+
Union[InstanceDiskEncryptionType, str]
1226+
] = None,
12241227
stackscript=None,
12251228
**stackscript_args,
12261229
):
@@ -1245,6 +1248,9 @@ def disk_create(
12451248
as trusted for the root user. These user's keys
12461249
should already be set up, see :any:`ProfileGroup.ssh_keys`
12471250
for details.
1251+
:param disk_encryption: The disk encryption policy for this Linode.
1252+
NOTE: Disk encryption may not currently be available to all users.
1253+
:type disk_encryption: InstanceDiskEncryptionType or str
12481254
:param stackscript: A StackScript object, or the ID of one, to deploy to this
12491255
disk. Requires deploying a compatible image.
12501256
:param **stackscript_args: Any arguments to pass to the StackScript, as defined
@@ -1274,6 +1280,9 @@ def disk_create(
12741280
"authorized_users": authorized_users,
12751281
}
12761282

1283+
if disk_encryption is not None:
1284+
params["disk_encryption"] = str(disk_encryption)
1285+
12771286
if image:
12781287
params.update(
12791288
{

0 commit comments

Comments
 (0)