Skip to content

Commit

Permalink
gce: Fix conditional formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin committed Mar 16, 2018
1 parent 4c63878 commit 115caf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libcloud/compute/drivers/gce.py
Original file line number Diff line number Diff line change
Expand Up @@ -4517,8 +4517,8 @@ def _build_disk_gce_struct(
if not isinstance(auto_delete, bool):
raise ValueError("auto_delete field is not a bool.")

if disk_size is not None \
and(not isinstance(disk_size, int)and not disk_size.isdigit()):
if (disk_size is not None and
not (isinstance(disk_size, int) or disk_size.isdigit())):
raise ValueError("disk_size must be a digit, '%s' provided." %
str(disk_size))

Expand Down

0 comments on commit 115caf6

Please sign in to comment.