mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
parent
9acbbb71a3
commit
08d4f89d99
@ -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" )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user