fix indent

This commit is contained in:
Adrien Beudin 2013-10-04 12:48:08 +02:00
parent 09a267a167
commit 8fbfd12432

View file

@ -133,17 +133,17 @@ def monitor_info(memory=False, cpu=False, disk=False, ifconfig=False, uptime=Fal
return json.loads(s.getLoad()) return json.loads(s.getLoad())
elif ifconfig: elif ifconfig:
result = {} result = {}
for k, fs in enumerate(json.loads(s.getNetwork())): for k, fs in enumerate(json.loads(s.getNetwork())):
interface = fs['interface_name'] interface = fs['interface_name']
if interface != "lo": if interface != "lo":
ip = get_ip_address(str(interface)) ip = get_ip_address(str(interface))
del fs['interface_name'] del fs['interface_name']
result[ip] = fs result[ip] = fs
else: else:
del fs['interface_name'] del fs['interface_name']
result[interface] = fs result[interface] = fs
return result return result
elif disk: elif disk:
result = {} result = {}