[skip ci] Add new func of utils on benchmarkk (#12595)

Signed-off-by: wangting0128 <ting.wang@zilliz.com>
pull/12601/head
wt 2021-12-02 12:59:33 +08:00 committed by GitHub
parent 147fc41a67
commit 9964d8d044
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -148,6 +148,13 @@ def get_server_tag(deploy_params):
return server_tag
def get_server_resource(deploy_params):
server_resource = {}
if deploy_params and "server_resource" in deploy_params:
server_resource = deploy_params["server_resource"]
return server_resource
def dict_update(source, target):
for key, value in source.items():
if isinstance(value, dict) and key in target: