Update VirtualMachine.cc

This commit is contained in:
Ruben S. Montero committed 2018-11-07 14:02:46 +01:00
1 parent 39cc5ea2fa
commit 873f9693b8
1 file changed
+2 -1
+2 -1
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;
}