mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fixed partition names with spaces effectively containing only the first word.
This commit is contained in:
parent
0dcaead36d
commit
07f863101f
1 changed files with 1 additions and 1 deletions
|
@ -528,7 +528,7 @@ def name(device, partition, name):
|
|||
'Invalid characters passed to partition.name'
|
||||
)
|
||||
|
||||
cmd = 'parted -m -s {0} name {1} {2}'.format(device, partition, name)
|
||||
cmd = '''parted -m -s {0} name {1} "'{2}'"'''.format(device, partition, name)
|
||||
out = __salt__['cmd.run'](cmd).splitlines()
|
||||
return out
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue