From 57ab70b05cfacf33b502ade652d3c2acdbcb2b77 Mon Sep 17 00:00:00 2001 From: rocky4570fft Date: Sun, 16 Oct 2016 00:56:49 +1000 Subject: [PATCH] fix up indentation --- moto/ec2/responses/instances.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/moto/ec2/responses/instances.py b/moto/ec2/responses/instances.py index f252e7e3f..10cdcd07b 100644 --- a/moto/ec2/responses/instances.py +++ b/moto/ec2/responses/instances.py @@ -156,11 +156,11 @@ class InstanceResponse(BaseResponse): block_device_type = instance.block_device_mapping[device_name_value] block_device_type.delete_on_termination = del_on_term_value - # +1 for the next device - mapping_counter += 1 + # +1 for the next device + mapping_counter += 1 - if mapping_counter > 1: - return EC2_MODIFY_INSTANCE_ATTRIBUTE + if mapping_counter > 1: + return EC2_MODIFY_INSTANCE_ATTRIBUTE def _dot_value_instance_attribute_handler(self): attribute_key = None