Skip to content

Commit

Permalink
fix: rename omegaconf
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoVoges committed Sep 26, 2023
1 parent 135d072 commit df5ecce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,4 +380,9 @@ def load_config(self, path: str):
return [], {}
classes = OmegaConf.create(config.get("classes", []))
parameters = OmegaConf.create(config.get("parameters", {}))

# add metadata to nodes
filename = os.path.splitext(os.path.split(path)[1])[0]
parameters._set_flag(["filename", "path"], [filename, path], recursive=True)

return classes, parameters
2 changes: 1 addition & 1 deletion kapitan/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import kapitan.cached as cached
from kapitan import __file__ as kapitan_install_path
from kapitan.errors import CompileError, InventoryError, KapitanError
from kapitan.inventory.omegaconf import OmegaConfBackend
from kapitan.inventory.omegaconf_inv import OmegaConfBackend
from kapitan.inventory.reclass import ReclassBackend
from kapitan.utils import (
PrettyDumper,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_omegaconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import yaml

from kapitan.inventory.omegaconf import OmegaConfBackend
from kapitan.inventory.omegaconf_inv import OmegaConfBackend


class OmegaConfMigrationTest(unittest.TestCase):
Expand Down

0 comments on commit df5ecce

Please sign in to comment.