Missing right curly or square bracket added

syntax error at /usr/lib/vmware-vcli/apps/vm/deploy-template.pl line 175, near "else"
Missing right curly or square bracket at /usr/lib/vmware-vcli/apps/vm/deploy-template.pl line 206, at end of line
Execution of /usr/lib/vmware-vcli/apps/vm/deploy-template.pl aborted due to compilation errors.