Fixes #4241 Failure to deploy VM when vm.instancename.flag is set to true Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>