mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #20359 from patrickshan/develop
ignore null string from blkid output
This commit is contained in:
commit
ab9ec6ba76
@ -216,6 +216,8 @@ def blkid(device=None):
|
||||
|
||||
ret = {}
|
||||
for line in __salt__['cmd.run_stdout']('blkid' + args, python_shell=False).split('\n'):
|
||||
if not line:
|
||||
continue
|
||||
comps = line.split()
|
||||
device = comps[0][:-1]
|
||||
info = {}
|
||||
|
Loading…
Reference in New Issue
Block a user