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):
if self._launchPromise(promise_name, config) and not promise_failed:
promise_failed = True
state_dir = os.path.join(self.partition_folder, PROMISE_STATE_FOLDER_NAME)
stat_info = os.stat(state_dir)
chownDirectory(state_dir, stat_info.st_uid, stat_info.st_gid)
stat_info = os.stat(self.partition_folder)
chownDirectory(self.partition_folder, stat_info.st_uid, stat_info.st_gid)
if promise_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