Bug 1696220
Summary: | CloudForms Null Coalescing fields in Ansible Playbook Methods do not Coalesce | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Chris Ruffalo <cruffalo> | ||||||
Component: | Automate | Assignee: | William Fitzgerald <wfitzger> | ||||||
Status: | CLOSED DUPLICATE | QA Contact: | Satyajit Bulage <sbulage> | ||||||
Severity: | low | Docs Contact: | Red Hat CloudForms Documentation <cloudforms-docs> | ||||||
Priority: | low | ||||||||
Version: | 5.9.9 | CC: | cmatthew, dmetzger, gmccullo, mkanoor, mshriver, obarenbo, tfitzger | ||||||
Target Milestone: | GA | ||||||||
Target Release: | cfme-future | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2019-06-06 21:11:37 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | CFME Core | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Chris Ruffalo
2019-04-04 11:20:08 UTC
Chris, Null Coalescing fields don't work as input Parameters for Ansible methods and inline methods currently. I opened a new BZ for this: https://bugzilla.redhat.com/show_bug.cgi?id=1698184 As a workaround, you can setup the null coalescing field in the instance and then use that in the input parameters. I am going to include a couple of screenshots. If you want, I have a domain export that I can include that has the workaround included for both inline method and ansible method. Thanks Billy Created attachment 1554615 [details]
null coalescing 1
Created attachment 1554616 [details]
null coalescing workaround
Billy, Thanks for taking the time to respond. In the domain I linked in the GitHub repository the difference is demonstrated with the different variables/values. I have a null coalescing field in the instance and then use the same pattern to null coalesce in the method parameter. I'm using the workaround now but it diminishes the value of the shared code and being able to call it from anywhere because I've got to modify schemas where I have this issue. (I'm making drop-in replacements for existing automation from Embedded Ansible.) Also, thank you for taking the time to test it with a Ruby method which I hadn't done in my domain. Chris Chris, Are you ok with me marking this BZ as a duplicate of mine and closing it ? I will track this issue for both cases with my BZ : https://bugzilla.redhat.com/show_bug.cgi?id=1698184 Please let me know *** This bug has been marked as a duplicate of bug 1698184 *** The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |