def step_impl(context, userName, anchorSetName): directory = bootstrap_util.getDirectory(context) user = directory.getUser(userName=userName) nodeAdminTuples = [directory.findNodeAdminTuple(row['User'], row['Peer'], row['Organization']) for row in context.table.rows] user.setTagValue(anchorSetName, bootstrap_util.getAnchorPeersConfigGroup(context=context, nodeAdminTuples=nodeAdminTuples))
def step_impl(context, userName, anchorSetName, channelName): directory = bootstrap_util.getDirectory(context) user = directory.getUser(userName=userName) nodeAdminTuples = [directory.findNodeAdminTuple(row['User'], row['Peer'], row['Organization']) for row in context.table.rows] user.setTagValue(anchorSetName, bootstrap_util.getAnchorPeersConfigGroup(context=context, nodeAdminTuples=nodeAdminTuples))