mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix backport of grains fix
A fix recently made to the salt/grains/disks.py was backported to 2017.7, but the fopen function was moved in oxygen and so the function does not exist in 2017.7. This did not make it into 2017.7.3 so there is no need to add this fix to any hotfixes.
This commit is contained in:
parent
43a45b42c3
commit
6cf7e50cc4
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