Skip to content

Commit b976674

Browse files
authored
Merge pull request #568 from Enjection/bugfix/configs/fix-dynconfig-api
Fix dynconfig proto usage
2 parents 0c1e47a + 5e81a4b commit b976674

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ydb/draft/dynamic_config.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ def _get_node_labels_request_factory(node_id):
7171

7272
def _wrap_dynamic_config(config_pb, dynamic_config_cls=None, *args, **kwargs):
7373
dynamic_config_cls = DynamicConfig if dynamic_config_cls is None else dynamic_config_cls
74-
return dynamic_config_cls(config_pb.identity.version, config_pb.identity.cluster, config_pb.config, *args, **kwargs)
74+
return dynamic_config_cls(
75+
config_pb.identity[0].version, config_pb.identity[0].cluster, config_pb.config[0], *args, **kwargs
76+
)
7577

7678

7779
def _wrap_get_config_response(rpc_state, response):

0 commit comments

Comments
 (0)