Merge "Emit log when copying file/directory permissions"

This commit is contained in:
Zuul 2022-04-05 11:30:40 +00:00 committed by Gerrit Code Review
commit e38db4973d
1 changed files with 1 additions and 0 deletions

View File

@ -120,6 +120,7 @@ class ConfigFile(object):
self._set_properties_from_conf(dest)
def _set_properties_from_file(self, source, dest):
LOG.info('Copying permissions from %s onto %s', source, dest)
shutil.copystat(source, dest)
stat = os.stat(source)
os.chown(dest, stat.st_uid, stat.st_gid)