Fix some more pylint issues.
This commit is contained in:
parent
9bb883e225
commit
4ba0c00c3d
|
@ -47,7 +47,7 @@ class Backup:
|
|||
user = self.config.get("user")
|
||||
proc = await asyncio.create_subprocess_shell(
|
||||
# "set -x; chown -R {} ${{BACKIVE_MOUNT}}/${{BACKIVE_TO}};".format(user) +
|
||||
# "sudo -E -u {} sh -c '".format(user) +
|
||||
# "sudo -E -u {} sh -c '".format(user) +
|
||||
self.config.get("script"),
|
||||
# "'",
|
||||
stdout=asyncio.subprocess.PIPE,
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
"""
|
||||
TODO
|
||||
"""
|
||||
|
||||
import os
|
||||
import asyncio
|
||||
|
||||
|
|
|
@ -5,6 +5,9 @@ from datetime import datetime
|
|||
|
||||
|
||||
class Scheduler():
|
||||
"""
|
||||
TODO
|
||||
"""
|
||||
__shared_state = dict()
|
||||
__data = dict()
|
||||
def __init__(self):
|
||||
|
|
|
@ -4,6 +4,9 @@ import os
|
|||
AVAILABLE_TOOLS = {}
|
||||
|
||||
def register_tool(name):
|
||||
"""
|
||||
TODO
|
||||
"""
|
||||
def decorator(Cls):
|
||||
AVAILABLE_TOOLS.update({name: Cls})
|
||||
return decorator
|
||||
|
|
|
@ -3,5 +3,8 @@ from backive.core.tool import AVAILABLE_TOOLS, register_tool
|
|||
|
||||
@register_tool("rsync")
|
||||
class Rsync:
|
||||
"""
|
||||
TODO
|
||||
"""
|
||||
def __init__(self, options):
|
||||
pass
|
||||
|
|
|
@ -10,6 +10,9 @@ from backive.core.events import EventInterface
|
|||
|
||||
|
||||
class TestEvents(unittest.TestCase):
|
||||
"""
|
||||
TODO
|
||||
"""
|
||||
def set_data(self, data):
|
||||
self.data = data
|
||||
|
||||
|
|
Loading…
Reference in New Issue