lib/puppet/provider/vc_vm/default.rb
def remove_nfs_datastore
    vm_host = find_vm_host
    nfsdatastore = get_nfs_datastore(vm_host)

    if nfsdatastore
      Puppet.notice "removing nfs datastore"
      vm_host.configManager.datastoreSystem.RemoveDatastore(:datastore => nfsdatastore)
    end
  end
# removes nfsdatastore from hots while vm_teardown
# make sure existing iso should be detached from cd?dvd before removing nfs_datastore
removes nfsdatastore from hots while vm_teardown
make sure existing iso should be detached from cd?dvd before removing nfs_datastore
removes nfsdatastore from hots while vm_teardown make sure existing iso should be detached from cd?dvd before removing nfs_datastore
def remove_nfs_datastore
    vm_host = find_vm_host
    nfsdatastore = get_nfs_datastore(vm_host)
    if nfsdatastore
      Puppet.notice "removing nfs datastore"
      vm_host.configManager.datastoreSystem.RemoveDatastore(:datastore => nfsdatastore)
    end
  end
def remove_nfs_datastore vm_host = find_vm_host nfsdatastore = get_nfs_datastore ( vm_host ) if nfsdatastore Puppet . notice "removing nfs datastore" vm_host . configManager . datastoreSystem . RemoveDatastore ( :datastore => nfsdatastore ) end end
removes nfsdatastore from hots while vm_teardown
make sure existing iso should be detached from cd?dvd before removing nfs_datastore
removes nfsdatastore from hots while vm_teardown make sure existing iso should be detached from cd?dvd before removing nfs_datastore