Stanislav Laznicka
364ffd5a0f
Fix FileStore.backup_file() not to backup same file
...
FileStore.backup_file() docstring claimed not to store a
copy of the same file but the behavior of the method did not
match this description.
This commit makes the backed-up file filename derivation
deterministic by hashing its content by SHA-256, thus it
should not back up two files with the same filename and content.
Reviewed-By: Aleksei Slaikovskii <aslaikov@redhat.com >
2018-02-19 14:16:51 +01:00
Jan Cholasta
7a482b7c72
logging: do not log into the root logger
...
Deprecate `ipa_log_manager.root_logger` and replace all calls to it with
module-level logger calls.
Reviewed-By: Martin Basti <mbasti@redhat.com >
2017-07-14 15:55:59 +02:00
Martin Basti
2e63ec42d0
py3: use ConfigParser instead of SafeConfigParser
...
DeprecationWarning: The SafeConfigParser class has been renamed
to ConfigParser in Python 3.2. This alias will be removed in
future versions. Use ConfigParser directly instead.
https://fedorahosted.org/freeipa/ticket/4985
Reviewed-By: Jan Cholasta <jcholast@redhat.com >
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com >
2017-06-01 09:24:24 +02:00
Jan Cholasta
26c46a447f
ipapython: move certmonger and sysrestore to ipalib.install
...
The certmonger and sysrestore modules depend on ipaplatform.
Move them to ipalib.install as they are used only from installers.
https://fedorahosted.org/freeipa/ticket/6474
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com >
2016-11-29 14:50:51 +01:00