mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
We do not have to lower() the label.
This commit is contained in:
parent
98aaf358d7
commit
93f0c2063b
@ -122,7 +122,7 @@ def mounted(name,
|
||||
elif device.upper().startswith('UUID='):
|
||||
real_device = device.split('=')[1].strip('"').lower()
|
||||
elif device.upper().startswith('LABEL='):
|
||||
_label = device.split('=')[1].lower()
|
||||
_label = device.split('=')[1]
|
||||
cmd = 'blkid -L {0}'.format(_label)
|
||||
res = __salt__['cmd.run_all']('{0}'.format(cmd))
|
||||
if res['retcode'] > 0:
|
||||
|
Loading…
Reference in New Issue
Block a user