Commit 8d97ae128d8a90eb431a69162a571551e831f034
1 parent
dfda321e
Exists in
dev
Fix call fn in Agent.py
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
src/core/pyros_django/majordome/agent/Agent.py
... | ... | @@ -3468,13 +3468,13 @@ class Agent: |
3468 | 3468 | |
3469 | 3469 | |
3470 | 3470 | def check_contexts(self, loginfo:bool): |
3471 | - for fcname in self.fn.fcontexts: | |
3472 | - self.fn.fcontext = fcname | |
3471 | + for fcname in self._oc['config'].fn.fcontexts: | |
3472 | + self._oc['config'].fn.fcontext = fcname | |
3473 | 3473 | if self.is_in_test_mode(): |
3474 | - self.fn.rootdir = os.path.abspath(self.fn.rootdir.replace("/PRODUCTS/","/PRODUCTS/TESTS/")) | |
3475 | - os.makedirs(self._fn.rootdir, exist_ok=True) | |
3474 | + self._oc['config'].fn.rootdir = os.path.abspath(self._oc['config'].fn.rootdir.replace("/PRODUCTS/","/PRODUCTS/TESTS/")) | |
3475 | + os.makedirs(self._oc['config'].fn.rootdir, exist_ok=True) | |
3476 | 3476 | if loginfo: |
3477 | - log.info(self.fn.fcontext_human()) | |
3477 | + log.info(self._oc['config'].fn.fcontext_human()) | |
3478 | 3478 | |
3479 | 3479 | |
3480 | 3480 | ... | ... |