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

Michal Privoznik mprivozn at redhat.com
Thu Dec 7 09:22:58 UTC 2017


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

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 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




More information about the libvir-list mailing list