X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=bin%2Fcheck-hrns.py;fp=bin%2Fcheck-hrns.py;h=e5ac4dca97e7df4a2d6faf5191904eb9099b8597;hb=a244e7e2b15d9361f7065d1ce76a917ad544ca33;hp=40909f2da7cd74f0390cd638a412a27f379d28e3;hpb=02eb169bde30811b77d86d78a042a1b27ae61d81;p=myplc.git diff --git a/bin/check-hrns.py b/bin/check-hrns.py index 40909f2..e5ac4dc 100755 --- a/bin/check-hrns.py +++ b/bin/check-hrns.py @@ -70,7 +70,7 @@ def handle_sites (sites,sites_by_id, dry_run,verbose): hrn='.'.join([toplevel, site['login_base']]) if site['hrn'] != hrn: if verbose: - print "Site %s - current hrn %s, should be %s"%(site['name'], site['hrn'], hrn) + print "Site %s - current hrn %s, should be %s"%(site['name'].encode('ascii', 'ignore'), site['hrn'], hrn) if dry_run: continue SetSiteHrn (site['site_id'],hrn) else: