Revision 8ff2e568 src/tm_mad/vcenter/delete

View differences:

src/tm_mad/vcenter/delete
119 119

  
120 120
                        ds.delete_virtual_disk(img_path)
121 121
                        img_dir = File.dirname(img_path)
122
                        vcenter_version = vi_client.vim.serviceContent.about.apiVersion
123
                        ds.rm_directory(img_dir) if ds.dir_empty?(img_dir) && vcenter_version != "6.5"
122
                        #vcenter_version = vi_client.vim.serviceContent.about.apiVersion
123
                        ds.rm_directory(img_dir) if ds.dir_empty?(img_dir) #&& vcenter_version != "6.5"
124 124

  
125 125
                    rescue Exception => e
126 126
                        if !e.message.start_with?('FileNotFound')

Also available in: Unified diff