Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(encoder): fix bug for encoder bin load
Browse files Browse the repository at this point in the history
  • Loading branch information
Larryjianfeng committed Jul 22, 2019
1 parent e9295ea commit 973672e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnes/base/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def _get_instance_from_yaml(cls, constructor, node, stop_on_import_error=False):
data = ruamel.yaml.constructor.SafeConstructor.construct_mapping(
constructor, node, deep=True)

dump_path = cls._get_dump_path_from_config(data)
dump_path = cls._get_dump_path_from_config(data.get('gnes_config', {}))
if dump_path:
obj = cls.load(dump_path)
obj.logger.info('restore %s from %s' % (cls.__name__, dump_path))
Expand Down

0 comments on commit 973672e

Please sign in to comment.