class Fission::Metadata
def delete_vm_favorite_entry(vm_path)
metadata.delete_favorite_entry '/vms/foo.vmwarevm'
Examples
vm_path - The absolute path to the directory of a VM.
libarary.
The 'favorites list' dictates which VMs are displayed in the Fusion VM
Public: Deletes the VM information from the 'favorites list' metadata.
def delete_vm_favorite_entry(vm_path) if @content.has_key?('VMFavoritesListDefaults2') @content['VMFavoritesListDefaults2'].delete_if { |vm| vm['path'] == vm_path } end if @content.has_key?('fusionInitialSessions') @content['fusionInitialSessions'].delete_if {|vm| vm['documentPath'] == vm_path} end end