Pep8 cleanup.
* devstack-vm-reap.py Follow-up to I8a058519dfabceaed2aac72565a8c1a2e91f8806. Suggested by: Clark Boylan <clark.boylan@gmail.com> Change-Id: Ic6f353117d00f133bd56fc59802426426cad9247
This commit is contained in:
@@ -137,9 +137,9 @@ def main():
|
||||
for snap_image in base_image.snapshot_images:
|
||||
# Normally, reap images that have sat in their current state
|
||||
# for 24 hours, unless the image is the current snapshot
|
||||
if REAP_ALL_IMAGES or \
|
||||
if (REAP_ALL_IMAGES or
|
||||
(snap_image != base_image.current_snapshot and
|
||||
now - snap_image.state_time > MACHINE_LIFETIME):
|
||||
now - snap_image.state_time > MACHINE_LIFETIME)):
|
||||
print 'Deleting image', snap_image.name
|
||||
try:
|
||||
delete_image(client, snap_image)
|
||||
|
||||
Reference in New Issue
Block a user