oh well...
Sometimes it helps just to step away...
here the answer:
profile=hostProfileManager.findAssociatedProfile(host)[0];
exec=profile.executeHostProfile(host);
taskID=hostProfileManager.applyHostConfig_Task(host,exec.configSpec);
stuff=System.getModule("com.vmware.library.vc.basic").vim3WaitTaskEnd(taskID,false,2);
The problem was that I didn't realize that the type vc:Profile is the same as the type vc:HostProfile
---------------------------------------------------------------------------------------------------------
Was it helpful? Let us know by completing this short survey here.