def step_impl(context, chainCreationPolicyNames, ordererSystemChainIdName): ordererBootstrapAdmin = bootstrap_util.getOrdererBootstrapAdmin(context) ordererSystemChainIdGUUID = ordererBootstrapAdmin.tags[ ordererSystemChainIdName] policyNames = [row['PolicyName'] for row in context.table.rows] chainCreationPolicyNamesConfigItem = bootstrap_util.createChainCreationPolicyNames( context, chainCreationPolicyNames=policyNames, chaindId=ordererSystemChainIdGUUID) ordererBootstrapAdmin.setTagValue(chainCreationPolicyNames, [chainCreationPolicyNamesConfigItem])
def step_impl(context, chainCreationPolicyNames, ordererSystemChainIdName): ordererBootstrapAdmin = bootstrap_util.getOrdererBootstrapAdmin(context) ordererSystemChainIdGUUID = ordererBootstrapAdmin.tags[ordererSystemChainIdName] policyNames = [row['PolicyName'] for row in context.table.rows] chainCreationPolicyNamesConfigItem = bootstrap_util.createChainCreationPolicyNames(context, chainCreationPolicyNames=policyNames, chaindId=ordererSystemChainIdGUUID) ordererBootstrapAdmin.setTagValue(chainCreationPolicyNames, [chainCreationPolicyNamesConfigItem])