def get_settings(): hostdef = current_hostdef() mysql = hostdef.get("mysql") user = mysql.get("user") passwd = mysql.get("passwd") host = mysql.get("host", "localhost") ignore = mysql.get("ignore_database", []) return (user, passwd, host, ignore)
def get_settings(): hostdef = current_hostdef() rsync = hostdef.get("rsync") dirs = rsync.get("dirs") options = rsync.get("options", "") delete = rsync.get("delete", False) exclude = rsync.get("host", "") return (dirs, options, delete, exclude)