mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
fix indent
This commit is contained in:
parent
f357060ed9
commit
eaedc52f6a
1 changed files with 3 additions and 3 deletions
|
@ -98,7 +98,7 @@ def process_stop(args):
|
||||||
def process_check(args):
|
def process_check(args):
|
||||||
with open('process.yml', 'r') as f:
|
with open('process.yml', 'r') as f:
|
||||||
processes = yaml.load(f)
|
processes = yaml.load(f)
|
||||||
|
|
||||||
result = {}
|
result = {}
|
||||||
for process, commands in processes.items():
|
for process, commands in processes.items():
|
||||||
if commands['status'] == 'service':
|
if commands['status'] == 'service':
|
||||||
|
@ -123,7 +123,7 @@ def monitor_info(memory=False, swap=False, cpu=False, disk=False, ifconfig=False
|
||||||
public -- Show IP public
|
public -- Show IP public
|
||||||
cpu -- Check CPU
|
cpu -- Check CPU
|
||||||
memory -- Check Memory
|
memory -- Check Memory
|
||||||
swap -- Check Swap
|
swap -- Check Swap
|
||||||
ifconfig -- Show Ip and MAC Adress
|
ifconfig -- Show Ip and MAC Adress
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
@ -196,4 +196,4 @@ def monitor_process(enable=None, disable=None, start=None, stop=None, check=Fals
|
||||||
elif check:
|
elif check:
|
||||||
return process_check(check)
|
return process_check(check)
|
||||||
elif info:
|
elif info:
|
||||||
return json.loads(s.getProcessCount())
|
return json.loads(s.getProcessCount())
|
||||||
|
|
Loading…
Add table
Reference in a new issue