commit | 598926b3ddafaf8300820157f18d7684ba2ac5be | [log] [tgz] |
---|---|---|
author | Ivan Suzdal <isuzdal@mirantis.com> | Tue Sep 04 15:05:34 2018 +0400 |
committer | Ivan Suzdal <isuzdal@mirantis.com> | Tue Sep 04 15:05:34 2018 +0400 |
tree | 598d698aac41ce80c9bb5dc549eb74cbd298df28 | |
parent | 8f18d79cd047883c72f4cc2dfa841aa067567cd5 [diff] |
Fix results dir path Change-Id: I715b7cb36f6c53643756512b02eb670af9557b34
diff --git a/_modules/oscap/__init__.py b/_modules/oscap/__init__.py index 88cdcba..4d0be7d 100644 --- a/_modules/oscap/__init__.py +++ b/_modules/oscap/__init__.py
@@ -97,8 +97,8 @@ if not os.path.isdir(base_dir): os.makedirs(base_dir) os.chmod(base_dir, mode) - os.rename(temp_dir, latest_dir) - os.chmod(latest_dir, mode) + os.rename(temp_dir, results_dir) + os.chmod(results_dir, mode) if stderr: ret['stderr'] = stderr