Commit 0a92b6fe45543ebc774467af96c4f9ada2a1e40b

Authored by Alexis Koralewski
1 parent 09e64ea9
Exists in dev

change parameters on replace products on test mode for fncontext

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/core/pyros_django/majordome/agent/Agent.py
... ... @@ -3477,7 +3477,7 @@ class Agent:
3477 3477 for fcname in self._oc['config'].fn.fcontexts:
3478 3478 self._oc['config'].fn.fcontext = fcname
3479 3479 if self.is_in_test_mode():
3480   - self._oc['config'].fn.rootdir = os.path.abspath(self._oc['config'].fn.rootdir.replace("PRODUCTS/","PRODUCTS/TESTS/"))
  3480 + self._oc['config'].fn.rootdir = os.path.abspath(self._oc['config'].fn.rootdir.replace("PRODUCTS/","PRODUCTS/TESTS/", 1))
3481 3481 os.makedirs(self._oc['config'].fn.rootdir, exist_ok=True)
3482 3482 if loginfo:
3483 3483 log.info(self._oc['config'].fn.fcontexts_human())
... ...