Fix small bug with a space in the hv_xen module's line
authorJack <sitnikove@gmail.com>
Fri, 29 Jun 2012 09:26:26 +0000 (13:26 +0400)
committerBernardo Dal Seno <bdalseno@google.com>
Fri, 29 Jun 2012 13:35:30 +0000 (15:35 +0200)
Remove a useless space at the end of the line in a config file.

Signed-off-by: Jack Sitnikov <sitnikove@gmail.com>
Signed-off-by: Bernardo Dal Seno <bdalseno@google.com>
Reviewed-by: Bernardo Dal Seno <bdalseno@google.com>

lib/hypervisor/hv_xen.py

index 521c18c..c85410b 100644 (file)
@@ -841,7 +841,7 @@ class XenHvmHypervisor(XenHypervisor):
     pci_pass = hvp[constants.HV_PASSTHROUGH]
     if pci_pass:
         pci_pass_arr = pci_pass.split(";")
-        config.write("pci = %s \n" % pci_pass_arr)
+        config.write("pci = %s\n" % pci_pass_arr)
     config.write("on_poweroff = 'destroy'\n")
     if hvp[constants.HV_REBOOT_BEHAVIOR] == constants.INSTANCE_REBOOT_ALLOWED:
       config.write("on_reboot = 'restart'\n")