Apex: Converts machine type for snapshot deploys to 'pc' 77/34377/1
authorTim Rozet <trozet@redhat.com>
Fri, 5 May 2017 15:36:35 +0000 (11:36 -0400)
committerTim Rozet <trozet@redhat.com>
Fri, 5 May 2017 15:36:35 +0000 (11:36 -0400)
Change-Id: Ic996d49b161af23184fbbce4812c103a158ebef2
Signed-off-by: Tim Rozet <trozet@redhat.com>
jjb/apex/apex-snapshot-deploy.sh

index 06c0023..3eb3cf2 100644 (file)
@@ -129,6 +129,7 @@ if [ -z "$virsh_vm_defs" ]; then
 fi
 
 for node_def in ${virsh_vm_defs}; do
+  sed  -ri "s/machine='[^\s]+'/machine='pc'/" ${node_def}
   sudo virsh define ${node_def}
   node=$(echo ${node_def} | awk -F '.' '{print $1}')
   sudo cp -f ${node}.qcow2 /var/lib/libvirt/images/