lib.ec.secret_store.Base.put(): Log no-op put() #161
1 changed files with 5 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ from typing import TYPE_CHECKING, Awaitable, Callable, TypeVar, override
|
|||
from ...base import Result, StatResult
|
||||
from ...file_types import FT_DIR, FT_REG
|
||||
from ...FileContext import FileContext
|
||||
from ...log import DEBUG, log
|
||||
from .layout import DEFAULT_PREFIX, host_prefix
|
||||
|
||||
if TYPE_CHECKING:
|
||||
|
|
@ -153,6 +154,10 @@ class Base(FileContext):
|
|||
pass
|
||||
else:
|
||||
if self._put_is_noop(existing.stdout, content, ftype):
|
||||
log(
|
||||
DEBUG,
|
||||
f'{self.log_name}: put: "{path}" unchanged, not written',
|
||||
)
|
||||
return Result()
|
||||
return await super().put(
|
||||
path,
|
||||
|
|
|
|||
Loading…
Reference in a new issue