Skip to content

Commit

Permalink
remove debug things
Browse files Browse the repository at this point in the history
  • Loading branch information
semio committed Jun 4, 2020
1 parent 9391765 commit 8c5d0c3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ddf_utils/chef/model/chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ def _loadfile(f):
if re.match(r'.*\.json', f):
res = json.load(open(f))
else:
try:
res = yaml.load(open(f), Loader=yaml.Loader)
except:
import ipdb; ipdb.set_trace()
res = yaml.load(open(f), Loader=yaml.Loader)

return res

Expand Down Expand Up @@ -388,7 +385,7 @@ def _build_recipe(recipe_file, to_disk=False, base_dir=None, **kwargs):
recipe_dir = base_dir
procedure_dir = base_dir
else:
# TODO: when building sub_recipes, pass configs from main recipe to sub recipe.
# TODO: when building sub_recipes, pass configs from main recipe to sub recipes
recipe_base_dir = os.path.abspath(os.path.dirname(recipe_file))
_fn = lambda k: make_abs_path(recipe['config'][k], recipe_base_dir) if k in recipe['config'] else base_dir
dict_dir = _fn('dictionary_dir')
Expand Down

0 comments on commit 8c5d0c3

Please sign in to comment.