creating a vapp

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

creating a vapp

mhristof
im trying to create a vapp but im getting this error

```
  File "/home/pyvmomi-scripts/clone_vm.py", line 222, in <module>
    main()
  File "/home/pyvmomi-scripts/clone_vm.py", line 217, in main
    args.resource_pool, args.power_on)
  File "/home/pyvmomi-scripts/clone_vm.py", line 187, in clone_vm
    vim.VirtualApp.CreateVApp(name="test-vapp01", target=resource_pool, spec=clonespec)
  File "/home/.local/lib/python2.7/site-packages/pyVmomi/VmomiSupport.py", line 560, in __call__
    return self.f(*args, **kwargs)
TypeError: _InvokeMethod() takes at least 2 arguments (1 given)
```

The line of code that throws this is

```
vim.VirtualApp.CreateVApp(name="test-vapp01", target=resource_pool, spec=clonespec)
```
and im using the `clone_vm.py` example to try and create the vapp.

I couldn't find any examples on how to create a vapp - please feel free to point me to any links.
Loading...