fix code passing ruff linter pre-commit ruff pre-commit ruff format
This commit is contained in:
@@ -27,25 +27,32 @@ from .common import *
|
||||
class backup_null(backup_generic):
|
||||
"""Null backup to register servers which don't need any backups
|
||||
but we still want to know they are taken in account"""
|
||||
type = 'null'
|
||||
|
||||
required_params = ['type','server_name','backup_name']
|
||||
type = "null"
|
||||
|
||||
required_params = ["type", "server_name", "backup_name"]
|
||||
optional_params = []
|
||||
|
||||
def do_backup(self,stats):
|
||||
def do_backup(self, stats):
|
||||
pass
|
||||
|
||||
def process_backup(self):
|
||||
pass
|
||||
|
||||
def cleanup_backup(self):
|
||||
pass
|
||||
|
||||
def register_existingbackups(self):
|
||||
pass
|
||||
def export_latestbackup(self,destdir):
|
||||
|
||||
def export_latestbackup(self, destdir):
|
||||
return {}
|
||||
def checknagios(self,maxage_hours=30):
|
||||
return (nagiosStateOk,"No backups needs to be performed")
|
||||
|
||||
def checknagios(self, maxage_hours=30):
|
||||
return (nagiosStateOk, "No backups needs to be performed")
|
||||
|
||||
|
||||
register_driver(backup_null)
|
||||
|
||||
if __name__=='__main__':
|
||||
if __name__ == "__main__":
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user