libvirt/IPMI hybrid DHA for Fuel auto-deployment
[genesis.git] / fuel / prototypes / deploy / deploy / dha-adapters / libvirt.sh
index 0e91f49..8d9edde 100755 (executable)
@@ -248,7 +248,7 @@ dha_nodeInsertIso()
 
     virtName=`$DHAPARSE $DHAFILE getNodeProperty $1 libvirtName`
     isoFile=$2
-    virsh change-media fuel-master --insert hdc $isoFile
+    virsh change-media $virtName --insert hdc $isoFile
 }
 
 # API: Eject ISO from virtual DVD
@@ -263,7 +263,7 @@ dha_nodeEjectIso()
     virsh change-media $virtName --eject hdc
 }
 
-# API: Wait until a suitable time to change the boot order to 
+# API: Wait until a suitable time to change the boot order to
 # API: "disk iso" when ISO has been booted. Can't be too long, nor
 # API: too short...
 # API: We should make a smart trigger for this somehow...