Skip to content

Commit

Permalink
Porting PR saltstack#51956 to 2019.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
garethgreenaway committed Sep 19, 2019
1 parent 8d4d5ea commit 1859c43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion salt/states/blockdev.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,5 +193,6 @@ def _checkblk(name):
Check if the blk exists and return its fstype if ok
'''

blk = __salt__['cmd.run']('blkid -o value -s TYPE {0}'.format(name))
blk = __salt__['cmd.run']('blkid -o value -s TYPE {0}'.format(name),
ignore_retcode=True)
return '' if not blk else blk

0 comments on commit 1859c43

Please sign in to comment.