Commit 2f76fd28 authored by Alain Takoudjou's avatar Alain Takoudjou

grid.promise: fix bad owner on promise result folder when running promise

parent 5e0344c8
...@@ -421,9 +421,8 @@ class PromiseLauncher(object): ...@@ -421,9 +421,8 @@ class PromiseLauncher(object):
if self._launchPromise(promise_name, config) and not promise_failed: if self._launchPromise(promise_name, config) and not promise_failed:
promise_failed = True promise_failed = True
state_dir = os.path.join(self.partition_folder, PROMISE_STATE_FOLDER_NAME) stat_info = os.stat(self.partition_folder)
stat_info = os.stat(state_dir) chownDirectory(self.partition_folder, stat_info.st_uid, stat_info.st_gid)
chownDirectory(state_dir, stat_info.st_uid, stat_info.st_gid)
if promise_failed: if promise_failed:
raise PromiseError("Promise(s) has failed.") raise PromiseError("Promise(s) has failed.")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment