repo_git = None
git_server = src.get_git_server(config,logger)
product_file = product_info.from_file.split('/').pop()
- if 'git_info' in product_info and 'repo_name' in product_info.git_info:
- if git_server in product_info.git_info.repo_name.keys():
- repo_git = product_info.git_info.repo_name[git_server]
+ if 'git_info' in product_info and 'repositories' in product_info.git_info:
+ if git_server in product_info.git_info.repositories.keys():
+ repo_git = product_info.git_info.repositories[git_server]
elif 'properties' in product_info and 'is_opensource' in product_info.properties and product_info.properties.is_opensource == 'yes' :
- for git_server in product_info.git_info.repo_name.keys():
+ for git_server in product_info.git_info.repositories.keys():
if git_server in config.VARS.opensource_repositories_servers:
- repo_git = product_info.git_info.repo_name[git_server]
+ repo_git = product_info.git_info.repositories[git_server]
break
elif 'properties' in product_info and not 'is_opensource' in product_info.properties:
- for git_server in product_info.git_info.repo_name.keys():
+ for git_server in product_info.git_info.repositories.keys():
if git_server in config.VARS.opensource_repositories_servers:
- repo_git = product_info.git_info.repo_name[git_server]
+ repo_git = product_info.git_info.repositories[git_server]
logger.warning("Using opensource repository ({}) for product {}".format(git_server, product_info.name))
break
else: