Skip to content

Commit a75116c

Browse files
davidheryantofeast-ci-bot
authored andcommitted
Fix import error in Feast CLI (feast-dev#314)
Due to this error: AttributeError: module 'feast.loaders.file' has no attribute 'yaml_loader' Since yaml_loader() function has been moved to a module feast.loaders.yaml
1 parent 8904c04 commit a75116c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sdk/python/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from feast.feature_set import FeatureSet
2222
import toml
2323
import pkg_resources
24-
from feast.loaders import file
24+
from feast.loaders.yaml import yaml_loader
2525
import yaml
2626
import json
2727

@@ -225,7 +225,7 @@ def apply(filename):
225225

226226
resources = [
227227
ResourceFactory.get_resource(res_dict["kind"]).from_dict(res_dict)
228-
for res_dict in file.yaml_loader(filename)
228+
for res_dict in yaml_loader(filename)
229229
]
230230

231231
feast_client = Client(

0 commit comments

Comments
 (0)