=== modified file 'abrek/dashboard.py'
@@ -142,9 +142,10 @@
hosturl = urllib.basejoin(db_config.host, "xml-rpc/")
try:
server = xmlrpclib.Server(hosturl)
- except IOError:
- print "Error connecting to server, please run 'abrek " \
- "dashboard setup [host]'"
+ except IOError, e:
+ print ("Error connecting to server at '%s'. Error was: %s, "
+ "please run 'lava-test dashboard setup [host]'" % (
+ hosturl, e))
sys.exit(1)
try:
result = server.put(DocumentIO.dumps(bundle), result_name,
=== modified file 'abrek/swprofile.py'
@@ -60,6 +60,6 @@
name = buildstamp.splitlines()[1]
except IOError:
if lsb_information == None:
- lsb_information = lsb_release.get_lsb_information()
+ lsb_information = lsb_release.get_distro_information()
name = lsb_information['DESCRIPTION']
return {"name":name}