File tree Expand file tree Collapse file tree
src/com/cloud/hypervisor/kvm/resource
test/com/cloud/hypervisor/kvm/resource Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -951,7 +951,7 @@ public String toString() {
951951 if (_listenAddr != null ) {
952952 graphicBuilder .append (" listen='" + _listenAddr + "'" );
953953 } else {
954- graphicBuilder .append (" listen='' " );
954+ graphicBuilder .append (" listen=''" );
955955 }
956956 if (_passwd != null ) {
957957 graphicBuilder .append (" passwd='" + _passwd + "'" );
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public void testCreateVMFromSpecLegacy() {
8080 vmStr += "<serial type='pty'>\n " ;
8181 vmStr += "<target port='0'/>\n " ;
8282 vmStr += "</serial>\n " ;
83- vmStr += "<graphics type='vnc' autoport='yes' listen='" + vncAddr + "' />\n " ;
83+ vmStr += "<graphics type='vnc' autoport='yes' listen='" + vncAddr + "' passwd='" + vncPassword + "' />\n " ;
8484 vmStr += "<console type='pty'>\n " ;
8585 vmStr += "<target port='0'/>\n " ;
8686 vmStr += "</console>\n " ;
@@ -156,7 +156,7 @@ public void testCreateVMFromSpec() {
156156 vmStr += "<serial type='pty'>\n " ;
157157 vmStr += "<target port='0'/>\n " ;
158158 vmStr += "</serial>\n " ;
159- vmStr += "<graphics type='vnc' autoport='yes' listen='" + vncAddr + "' />\n " ;
159+ vmStr += "<graphics type='vnc' autoport='yes' listen='" + vncAddr + "' passwd='" + vncPassword + "' />\n " ;
160160 vmStr += "<console type='pty'>\n " ;
161161 vmStr += "<target port='0'/>\n " ;
162162 vmStr += "</console>\n " ;
You can’t perform that action at this time.
0 commit comments