I am trying to get image_name from the Image() fun...
# python
c
I am trying to get image_name from the Image() function from Alpha's pulumi-docker, however whenever I call
ui_image.image_name
it returns a
pulumi.Output.output object
, which is expected however I need to insert the value as a string so I can create the container_definition. My question is how are you going about this? I thought the following would work, however it fails still. Maybe its plain as day and I just been staring at it too long. Error returns
Container.image contains invalid characters.
f
That’s odd that it’s still an
output
after you’re within the apply…
Can you try passing the args to Output.all as individual args instead of as an array?
My recollection is that output.all in Python is actually variable arguments
so you should either pass it as individual args or destructure the list (e.g.
*arr
)
c
Yea I just switched it from
Output.all(arg1, arg2,arg3).apply()
same result
f
So it still shows the output object w/in your diff?
c
yes
I tried a single arg. same result.
f
What happens if you try just ui_image.image_name.apply?
If that does not work, then can you please open an issue as a bug? That doesn’t sound right that apply on an output wouldn’t actually do anything
👍 1
c
Yea I just tested that out of curiosity still returns object class instead of the result
f
Thanks and sorry about the trouble running into this