I applied this as a quick test, seems to be working, the swift graph is back:
=== modified file 'landscape/monitor/swiftusage.py' --- landscape/monitor/swiftusage.py 2014-05-20 13:12:48 +0000 +++ landscape/monitor/swiftusage.py 2016-03-29 22:45:38 +0000 @@ -118,7 +118,9 @@
scout = Scout("diskusage") # Perform the actual call - _, disk_usage, code = scout.scout(host) + scout_result = scout.scout(host) + disk_usage = scout_result[1] + code = scout_result[2] if code == 200: return disk_usage
@@ -130,7 +132,7 @@ if not usage["mounted"]: continue
- device = usage["device"] + device = usage["device"].encode("utf-8") devices.add(device)
step_values = []
I applied this as a quick test, seems to be working, the swift graph is back:
=== modified file 'landscape/ monitor/ swiftusage. py' monitor/ swiftusage. py 2014-05-20 13:12:48 +0000 monitor/ swiftusage. py 2016-03-29 22:45:38 +0000
--- landscape/
+++ landscape/
@@ -118,7 +118,9 @@
scout = Scout("diskusage")
# Perform the actual call
- _, disk_usage, code = scout.scout(host)
+ scout_result = scout.scout(host)
+ disk_usage = scout_result[1]
+ code = scout_result[2]
if code == 200:
return disk_usage
@@ -130,7 +132,7 @@
continue
if not usage["mounted"]:
- device = usage["device"] device" ].encode( "utf-8" )
devices. add(device)
+ device = usage["