pvl.rrd-interfaces: fix readlink() on existing symlinks
authorTero Marttila <terom@paivola.fi>
Sun, 07 Sep 2014 14:25:14 +0300
changeset 426 b2078645456a
parent 425 4e828d47421a
child 427 7dd5a33aa145
pvl.rrd-interfaces: fix readlink() on existing symlinks
bin/pvl.rrd-interfaces
--- a/bin/pvl.rrd-interfaces	Sun Sep 07 14:22:47 2014 +0300
+++ b/bin/pvl.rrd-interfaces	Sun Sep 07 14:25:14 2014 +0300
@@ -94,7 +94,7 @@
         )
 
         # sync
-        if os.path.exists(linkpath) and os.path.readlink(linkpath) == rrdpath :
+        if os.path.exists(linkpath) and os.readlink(linkpath) == rrdpath :
             continue
             
         log.info("%s: %s", linkpath, rrdpath)