changeset 21:da4848140985

OBO
author Jeff Hammel <k0scist@gmail.com>
date Thu, 16 Jan 2014 13:12:32 -0800
parents 5c5edfb827b7
children 745ea6592724
files silvermirror/unify.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/silvermirror/unify.py
+++ b/silvermirror/unify.py
@@ -107,29 +107,29 @@ def unify(conf, _resources, test=False, 
                               if key in _resources])
         else:
             for key, value in resources.items():
                 directory = os.path.realpath(value['directory']) + os.sep
                 if (cwd + os.sep).startswith(directory):
                     resources = { key: value }
                     break
     if test:
-        log("Resources:\n%s")
+        log("Resources:\n")
         pprint(resources)
 
     ### choose reflector backend
     reflectors = dict([(i.name, i.load()) for i in iter_entry_points('silvermirror.reflectors')])
     reflector = reflectors['unison']() # only one right now
 
     ### sync with hosts
     os.chdir(conf['main']['basedir'])
     for index, resource in enumerate(resources):
 
         # echo resource
-        log("syncing:'%s' [%d/%d]" % (resource, index, len(resources)))
+        log("syncing:'%s' [%d/%d]" % (resource, index+1, len(resources)))
 
         # loop over hosts
         for host in hosts:
             reflector.sync(host, resource, resources[resource]['ignore'], pw.get('host'), test)
     os.chdir(cwd)
 
 def main(args=sys.argv[1:]):