mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-22 20:54:49 +09:00
1 parent
9acbbb71a3
commit
08d4f89d99
1 file changed
+3
-2
@@ -413,10 +413,11 @@ int VirtualMachine::parse_graphics(string& error_str, Template * tmpl)
|
||||
}
|
||||
|
||||
string random_passwd = graphics->vector_value("RANDOM_PASSWD");
|
||||
string password = graphics->vector_value("PASSWD");
|
||||
|
||||
if ( !random_passwd.empty() )
|
||||
if ( !random_passwd.empty() && password.empty() )
|
||||
{
|
||||
string password = one_util::random_password();
|
||||
password = one_util::random_password();
|
||||
|
||||
if ( graphics->vector_value("TYPE") == "SPICE" )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user