ec2: Fix linter error with len(tags)>0

This commit is contained in:
Anders Ingemann 2018-07-19 13:24:44 +02:00
parent b451c81348
commit 92a3b5c079
No known key found for this signature in database
GPG key ID: 16A5864B259E59CD

View file

@ -18,7 +18,7 @@ class EBSVolume(Volume):
'AvailabilityZone': zone, 'AvailabilityZone': zone,
'VolumeType': 'gp2', 'VolumeType': 'gp2',
} }
if len(tags) > 0: if tags:
params['TagSpecifications'] = [{'ResourceType': 'volume', 'Tags': tags}] params['TagSpecifications'] = [{'ResourceType': 'volume', 'Tags': tags}]
if e.encrypted: if e.encrypted: