-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FS module alias configuration do not taken into account everytime #3010
Comments
Hi @abd3-13 Patch merged into the develop branch. Can you test it ? If it is ok, will be release in next version. |
Hi @nicolargo sorry was busy, will check the branch and update you |
Hi @nicolargo i have tried the change you made on the fs python file, added the alias on the config as well by still the same it only remove the path (/dev/sdb to sdb ), i can't still assign alias to the blocks, here is an asciinema, should i remove the installed glances and install develop branch (actually how? do git clone?)? |
was fiddling around to see if something can be done, i tried to see if the alias was retrieved but only when "/:[name]" is used the alias is retrieved the others are discarded (if [/:Root,/mnt/My_Data:DataHDD] after , it is droped also if it's other then "/" like "/mnt..." drooped # Filesystem list (sorted by name)
for i in sorted(self.stats, key=operator.itemgetter(self.get_key())):
# New line
ret.append(self.curse_new_line())
mnt_point = i['alias'] if 'alias' in i else i['mnt_point']
#tempory glimpse on what is happing
with open('out.txt', 'a') as f:
print(i, file=f)
if len(mnt_point) + len(i['device_name'].split('/')[-1]) <= name_max_width - 3:
# If possible concatenate mode info... Glances touch inside :)
#mnt_point = i['mnt_point'] + ' (' + i['device_name'].split('/')[-1] + ')'
mnt_point += '' # don't show device_name, can also remove if
elif len(mnt_point) > name_max_width:
mnt_point = mnt_point[:name_max_width] + '_'
# set the name to the last array value until alias works
mnt_point = mnt_point.split('/')[-1]
msg = '{:{width}}'.format(nativestr(mnt_point), width=name_max_width + 1) out.txt content
mnt_point with value "/" only has alias but config is |
Check the bug
Before filling this bug report, please search if a similar issue already exists.
In this case, just add a comment on this existing issue.
Describe the bug
I have tried to configure glances fs module to show only the alias, assign alias to other block but it seems to only work on root, tried the dev path, mount path, lvm path but its not assigning the alias, might be from the config as well, will put the tried paths and configs
To Reproduce
Steps to reproduce the behavior:
Expected behavior
to show the alias only for allowed block , like the pic below
Screenshots
the below is the output i get with the configs i tried, can some show me the light
Environement (please complete the following information)
this a debian lxc on proxmox 8.2.7
Pypi package
Additional context
i am new to issues postings, please do let me know if any mistake i made
The text was updated successfully, but these errors were encountered: