vmware/pyvmomi-community-samples

How do I retrieve a key of device after creation?

Open

#629 geöffnet am 19. Feb. 2020

Auf GitHub ansehen
 (0 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Python (914 Forks)batch import
help wanted

Repository-Metriken

Stars
 (972 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Hello,

Let's suppose I used script add_nic_to_vm.py to create a new NIC. How am I to retrieve the key of the newly created device in order to, for example, delete it later? Should I after successful creation search through all the VM's devices to find my new one, based on some other parameters, or there is an easier way?

Thanks.

Contributor Guide