Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7ec39cc

Browse files
phobologicmarkpeek
authored andcommitted
Size/IOPS should be positive_integers (cloudtools#761)
This isn't 100% correct, only because positive_integers allows for a value of 0, but changing that functionality seems like it'd break things elsewhere.
1 parent 1890cd1 commit 7ec39cc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

troposphere/ec2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,9 +464,9 @@ class Volume(AWSObject):
464464
'AutoEnableIO': (boolean, False),
465465
'AvailabilityZone': (basestring, True),
466466
'Encrypted': (boolean, False),
467-
'Iops': (integer, False),
467+
'Iops': (positive_integer, False),
468468
'KmsKeyId': (basestring, False),
469-
'Size': (basestring, False),
469+
'Size': (positive_integer, False),
470470
'SnapshotId': (basestring, False),
471471
'Tags': (list, False),
472472
'VolumeType': (basestring, False),

0 commit comments

Comments
 (0)