--- 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