Project

General

Profile

Actions

Bug #7360

closed

Architecture #6948: Merge cf-clerk into Rudder

Exception: Exception caught during polcy update process: empty.max

Added by François ARMAND about 9 years ago. Updated almost 9 years ago.

Status:
Released
Priority:
1 (highest)
Category:
Web - Compliance & node report
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

When generating promise, we get "Exception caught during polcy update process: empty.max".

This is due to an uncheck list size in PrepareTemplateVarialbe

    def formatUsebundle(x:Seq[(Technique, String, Bundle)]) = {
       // max not possible
      val alignWidth = x.map(_._2.size).max  
      x.map { case (t, promiser, bundle) => s""""${promiser}"${" "*Math.max(0, alignWidth - promiser.size)} usebundle => ${bundle.name};"""}.mkString( "\n")
    }
Actions

Also available in: Atom PDF