diff --git a/lib/hypervisor/hv_kvm.py b/lib/hypervisor/hv_kvm.py
index 589c08a5a5ca8c32c969e2dc2d40e401ec70f776..b311a8de5ed692796640f0a423a4c1aa19c04251 100644
--- a/lib/hypervisor/hv_kvm.py
+++ b/lib/hypervisor/hv_kvm.py
@@ -425,9 +425,9 @@ class KVMHypervisor(hv_base.BaseHypervisor):
       if boot_disk:
         kvm_cmd.extend(['-boot', 'c'])
         if disk_type != constants.HT_DISK_IDE:
-            boot_val = ',boot=on'
+          boot_val = ',boot=on'
         else:
-            boot_val = ''
+          boot_val = ''
         # We only boot from the first disk
         boot_disk = False
       else:
@@ -443,7 +443,7 @@ class KVMHypervisor(hv_base.BaseHypervisor):
       if boot_cdrom:
         kvm_cmd.extend(['-boot', 'd'])
         if disk_type != constants.HT_DISK_IDE:
-            options = '%s,boot=on' % options
+          options = '%s,boot=on' % options
       else:
         if disk_type == constants.HT_DISK_PARAVIRTUAL:
           if_val = ',if=virtio'