File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff 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."
Original file line number Diff line number Diff 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."
You can’t perform that action at this time.
0 commit comments