1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Update VirtualMachine.cc

This commit is contained in:
Ruben S. Montero 2018-11-07 12:53:56 +01:00
parent 39cc5ea2fa
commit 873f9693b8

View File

@ -3474,9 +3474,10 @@ int VirtualMachine::parse_sched_action(string& error_str)
int VirtualMachine::check_tm_mad_disks(const string& tm_mad)
{
string tm_mad_sys;
obj_template->get("TM_MAD_SYSTEM", tm_mad_sys);
if ( tm_mad_sys != "" ) // VM has TM_MAD_SYSTEM already defined
if ( !tm_mad_sys.empty() ) // VM has TM_MAD_SYSTEM already defined
{
return 0;
}