mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
License & doc generator
This commit is contained in:
parent
0305d0039d
commit
412a4b4ea6
2 changed files with 13 additions and 12 deletions
|
@ -114,7 +114,7 @@ def firewall_list():
|
||||||
return firewall
|
return firewall
|
||||||
|
|
||||||
def firewall_reload(upnp=False):
|
def firewall_reload(upnp=False):
|
||||||
'''
|
"""
|
||||||
Reload iptables configuration
|
Reload iptables configuration
|
||||||
|
|
||||||
Keyword arguments:
|
Keyword arguments:
|
||||||
|
@ -122,7 +122,7 @@ def firewall_reload(upnp=False):
|
||||||
|
|
||||||
Return
|
Return
|
||||||
Dict
|
Dict
|
||||||
'''
|
"""
|
||||||
with open('firewall.yml', 'r') as f:
|
with open('firewall.yml', 'r') as f:
|
||||||
firewall = yaml.load(f)
|
firewall = yaml.load(f)
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,8 @@ def process_check(args):
|
||||||
|
|
||||||
|
|
||||||
def monitor_info(memory=False, cpu=False, disk=False, ifconfig=False, uptime=False, public=False):
|
def monitor_info(memory=False, cpu=False, disk=False, ifconfig=False, uptime=False, public=False):
|
||||||
|
"""
|
||||||
|
"""
|
||||||
if memory:
|
if memory:
|
||||||
return json.loads(s.getMem())
|
return json.loads(s.getMem())
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue