[PATCH] A sysfs attribute may be either a file or a symlink but not both (#594803)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 iutil.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/iutil.py b/iutil.py
index 54ae11b..0b74e08 100644
--- a/iutil.py
+++ b/iutil.py
@@ -1086,7 +1086,7 @@ def get_sysfs_attr(path, attr):
     attribute = "/sys%s/%s" % (path, attr)
     attribute = os.path.realpath(attribute)
 
-    if not os.path.isfile(attribute) or not os.path.islink(attribute):
+    if not os.path.isfile(attribute) and not os.path.islink(attribute):
         log.warning("%s is not a valid attribute" % (attr,))
         return None
 
-- 
1.7.0.4


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux