1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

cifs applier logging improved

This commit is contained in:
Игорь Чудов 2020-06-29 20:06:39 +04:00
parent 3a16e6eb7e
commit e8c71aa913
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -20,6 +20,7 @@ import fileinput
import jinja2
import os
import subprocess
import logging
from pathlib import Path
from .applier_frontend import (
@ -28,6 +29,7 @@ from .applier_frontend import (
)
from gpt.drives import json2drive
from util.util import get_homedir
from util.logging import slogm
def storage_get_drives(storage, sid):
drives = storage.get_drives(sid)
@ -155,5 +157,8 @@ class cifs_applier_user(applier_frontend):
def admin_context_apply(self):
if self.__module_enabled:
logging.debug(slogm('Running CIFS applier for user in administrator context'))
self.__admin_context_apply()
else:
logging.debug(slogm('CIFS applier for user in administrator context will not be started'))