[libvirt-php][PATCH 3/7] installation_get_xml: Don't override defaults of <on_reboot/> and friends

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We don't really need to override the defaults because libvirt
chooses sane ones.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 src/libvirt-php.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/libvirt-php.c b/src/libvirt-php.c
index 51534a5..307412e 100644
--- a/src/libvirt-php.c
+++ b/src/libvirt-php.c
@@ -2345,9 +2345,6 @@ char *installation_get_xml(virConnectPtr conn, char *name, int memMB,
                       "    %s\n"
                       "  </features>\n"
                       "  <clock offset=\"%s\"/>\n"
-                      "  <on_poweroff>destroy</on_poweroff>\n"
-                      "  <on_reboot>destroy</on_reboot>\n"
-                      "  <on_crash>destroy</on_crash>\n"
                       "  <vcpu>%d</vcpu>\n"
                       "  <devices>\n"
                       "    <emulator>%s</emulator>\n"
@@ -2388,9 +2385,6 @@ char *installation_get_xml(virConnectPtr conn, char *name, int memMB,
                       "    %s\n"
                       "  </features>\n"
                       "  <clock offset=\"%s\"/>\n"
-                      "  <on_poweroff>destroy</on_poweroff>\n"
-                      "  <on_reboot>destroy</on_reboot>\n"
-                      "  <on_crash>destroy</on_crash>\n"
                       "  <vcpu>%d</vcpu>\n"
                       "  <devices>\n"
                       "    <emulator>%s</emulator>\n"
-- 
2.13.6

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux