VMware Cloud Community
kylejw
Contributor
Contributor

vRA 8.1 Python action is not receiving a variable in inputs

I have a custom resource being provisioned in cloud assembly. 

 

The custom resource calls a workflow with a couple of hard-coded variables (username string, password securestring, etc)

The workflow has only one step, an action call to a Python zip.  

 

I am receiving the inputProperties just fine, but the other variables are not being passed into the action.  This only occurs when the workflow is triggered by cloud assembly.  If I trigger a run manually, the variables are populated in 'inputs'

 

Is this a bug or am I missing something?

0 Kudos
4 Replies
kylejw
Contributor
Contributor

This turned out to be my lack of knowledge around python and was completely unrelated to vRA

I figured it out about 30 seconds after posting the question, d'oh!

0 Kudos
n1ghtw4lk3r
Contributor
Contributor

hi I have same issue I've setup simple code

def handler(context, inputs):

  out = "A"

 

In variables I've setup out as an Output(string) and after run out variable is empty do you know why ?

0 Kudos
xian_
Expert
Expert

try

  return {"out" : "A"}
n1ghtw4lk3r
Contributor
Contributor

thanks a lot this save my day

0 Kudos