def update_rule(step, updated_name, updated_condition, updated_action, server_id): world.server_id = server_id world.up_name, world.up_condition, world.up_action = Utils.create_rule_parameters(updated_name, updated_condition, updated_action) world.req = api_utils.update_rule(tenant_id=world.tenant_id, server_id=world.server_id, rule_name=world.up_name, condition=world.up_condition, action=world.up_action, rule_id=world.rule_id, headers=world.headers)
def update_rule(context, updated_name, updated_condition, updated_action, server_id): context.server_id = server_id context.up_name, context.up_condition, context.up_action = \ Utils.create_rule_parameters(updated_name, updated_condition, updated_action) context.req = api_utils.update_rule(tenant_id=context.tenant_id, server_id=context.server_id, rule_name=context.up_name, condition=context.up_condition, action=context.up_action, rule_id=context.rule_id, headers=context.headers)