Skip to content

Commit 82dd267

Browse files
Fix lint
1 parent f517a71 commit 82dd267

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

linode_api4/groups/linode.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,12 @@ def instance_create(
372372
an outdated library.
373373
"""
374374

375-
if image and not root_pass and not authorized_keys and not authorized_users:
375+
if (
376+
image
377+
and not root_pass
378+
and not authorized_keys
379+
and not authorized_users
380+
):
376381
raise ValueError(
377382
"When creating an Instance from an Image, at least one of "
378383
"root_pass, authorized_users, or authorized_keys must be provided."

linode_api4/objects/linode.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,12 @@ def disk_create(
14191419
:rtype: Disk or tuple(Disk, str)
14201420
"""
14211421

1422-
if image and not root_pass and not authorized_keys and not authorized_users:
1422+
if (
1423+
image
1424+
and not root_pass
1425+
and not authorized_keys
1426+
and not authorized_users
1427+
):
14231428
raise ValueError(
14241429
"When creating a Disk from an Image, at least one of "
14251430
"root_pass, authorized_users, or authorized_keys must be provided."

0 commit comments

Comments
 (0)