mirror of https://github.com/apache/cloudstack.git
kvm: xml escape password
(cherry picked from commit 13de2691fd)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Conflicts:
plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
This commit is contained in:
parent
7949d2922d
commit
ccf13ec04e
|
|
@ -16,6 +16,8 @@
|
|||
// under the License.
|
||||
package com.cloud.hypervisor.kvm.resource;
|
||||
|
||||
import org.apache.commons.lang.StringEscapeUtils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
|
@ -1168,7 +1170,7 @@ public class LibvirtVMDef {
|
|||
_port = port;
|
||||
_autoPort = autoPort;
|
||||
_listenAddr = listenAddr;
|
||||
_passwd = passwd;
|
||||
_passwd = StringEscapeUtils.escapeXml(passwd);
|
||||
_keyMap = keyMap;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue