Actions
Bug #9085
openVMware folders not showing full path
Status:
New
Priority:
Normal
Assignee:
-
Category:
Compute resources - VMware
Target version:
-
Description
From http://projects.theforeman.org/issues/8363#change-35696
This still doesn't appear to be sorting correctly. It's only sorting on the parent name, not path. folders.png shows what the code produces today. folder2.png shows what happens when folder.rb is changed to use ""#{path} / #{name}"" This is closer, but everything before "vm" should be truncated.
Files
Updated by Dominic Cleal almost 10 years ago
- Related to Bug #8363: Sort VMware datastore/network dropdown menus added
Updated by Dominic Cleal almost 10 years ago
It seems to me that the to_label method we added in app/models/concerns/fog_extensions/vsphere/folder.rb should be calling to_label for the parent too. The parent appears to be just the label of the parent folder, not the full path - nor is it calling parent.to_label recursively. Probably doing that would fix it.
The change to path sort of works, but it's just a string that contains the 'vm' folder too, so not ideal.
Actions