Fix sync-rsync with global config
authorJack Miller <jack@codezen.org>
Sat, 6 Jun 2015 00:13:53 +0000 (19:13 -0500)
committerJack Miller <jack@codezen.org>
Sat, 6 Jun 2015 00:14:22 +0000 (19:14 -0500)
plugins/sync-rsync.py

index e14a5aa..ee43cca 100644 (file)
@@ -48,7 +48,7 @@ from canto_next.hooks import on_hook, call_hook
 from canto_next.canto_backend import DaemonBackendPlugin
 from canto_next.remote import DaemonRemotePlugin
 
-from canto_next.config import parse_locks, parse_unlocks
+from canto_next.config import parse_locks, parse_unlocks, config
 from canto_next.locks import config_lock, feed_lock
 from canto_next.feed import wlock_all, wunlock_all, rlock_all, runlock_all, allfeeds
 
@@ -216,7 +216,7 @@ class CantoFileSync(DaemonBackendPlugin):
                     log.debug("conf: We are older")
                     parse_locks()
                     shutil.move(fname, self.backend.conf_path)
-                    self.backend.conf.parse()
+                    config.parse()
                     parse_unlocks()
 
                     # Echo these changes to all connected sockets that care