and the yaml files.
this new version just keep the old info if it exists include my_name, my_token, not only include my_token
i found the key of question is not here, this patch has no value. if add params my_token when config yaml, my_token will not generate new token.
Thanks, Yinsi
Thanks, Luan Shengde
Signed-off-by: Liu Yinsi liuyinsi@163.com
lib/build_my_info_client.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) mode change 100644 => 100755 lib/build_my_info_client.rb
diff --git a/lib/build_my_info_client.rb b/lib/build_my_info_client.rb old mode 100644 new mode 100755 index c946bec..6aa842c --- a/lib/build_my_info_client.rb +++ b/lib/build_my_info_client.rb @@ -66,12 +66,16 @@ class BuildMyInfo
def store_account_info es = ESClient.new(index: 'accounts')
my_info_es = es.query_by_id(@my_info['my_email']) || {}
@my_info.update my_info_es
es.put_source_by_id(@my_info['my_email'], @my_info) end
def config_my_info
store_account_info config_default_yaml config_lab_yaml
- store_account_info end
end
2.23.0