mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #45907 from terminalmage/fix-grains-backport
Fix backport of grains fix
This commit is contained in:
commit
317d35bd15
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ def _linux_disks():
|
|||
|
||||
for entry in glob.glob('/sys/block/*/queue/rotational'):
|
||||
try:
|
||||
with salt.utils.files.fopen(entry) as entry_fp:
|
||||
with salt.utils.fopen(entry) as entry_fp:
|
||||
device = entry.split('/')[3]
|
||||
flag = entry_fp.read(1)
|
||||
if flag == '0':
|
||||
|
|
Loading…
Add table
Reference in a new issue