From: Mohamed Larabi Date: Fri, 13 Dec 2013 15:50:13 +0000 (+0100) Subject: check-hrns.py: Ciro fix X-Git-Tag: myplc-5.3-2~1^2 X-Git-Url: http://git.onelab.eu/?p=myplc.git;a=commitdiff_plain;h=a244e7e2b15d9361f7065d1ce76a917ad544ca33 check-hrns.py: Ciro fix --- 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: