Guest

Preview Tool

Cisco Bug: CSCvu56678 - Empty value is resolved as null when resolving the macro in task input

Last Modified

Sep 21, 2020

Products (1)

  • Cisco UCS Director

Known Affected Releases

6.7(4.0.67582)

Description (partial)

Symptom:
Orchestration > Workflows (Select a PS related workflow) > PSTask > Task Inputs > Commands / Scripts
custom task or PS task PS script execution:

Script logic:

   if (pool == ""){
      ## some task to execute (task a) ##;
    } else {
      ## task b ####
      }

Output
UCSD v < 6.5.x.x:
pool = "" --> The task a will be executed correctly because pool == "".

UCSDv 6.7.4.0:
pool = "" --> The task b will be executed instead of task a even if pool its equal to "".

This will not work anymore in UCSD 6.7.4.0, but can work on UCSD 6.5.x.x

Conditions:
UCS Director 6.7.4.0
Can be an WF that was working on previous UCSD versions like 6.5.x.x
Using a PS agent and a WF executing a PS script.
Orchestration > Workflows (Select a PS related workflow) > PSTask > Task Inputs > Commands / Scirpts

In the script using a validation "" to map a empty value.
if ( pool == "" )

The variable is not being defined in WF or it's being defined as empty value.
Bug details contain sensitive information and therefore require a Cisco.com account to be viewed.

Bug Details Include

  • Full Description (including symptoms, conditions and workarounds)
  • Status
  • Severity
  • Known Fixed Releases
  • Related Community Discussions
  • Number of Related Support Cases
Bug information is viewable for customers and partners who have a service contract. Registered users can view up to 200 bugs per month without a service contract.