Bug 1767901
Summary: | [RFE] automate method to delete a tag from a category | ||
---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Satoe Imaishi <simaishi> |
Component: | Automate | Assignee: | Jay Zeng <zhzeng> |
Status: | CLOSED ERRATA | QA Contact: | Ganesh Hubale <ghubale> |
Severity: | medium | Docs Contact: | Red Hat CloudForms Documentation <cloudforms-docs> |
Priority: | medium | ||
Version: | 5.10.9 | CC: | dmetzger, ghubale, gmccullo, lavenel, mkanoor, obarenbo, phoffmann, simaishi, smallamp, zhzeng |
Target Milestone: | GA | Keywords: | ZStream |
Target Release: | 5.11.1 | Flags: | simaishi:
cfme-5.11.z+
|
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | 5.11.1.0 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | 1744514 | Environment: | |
Last Closed: | 2019-12-13 00:35:54 UTC | Type: | --- |
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: | |||
Bug Depends On: | 1744514 | ||
Bug Blocks: |
Comment 2
CFME Bot
2019-11-01 19:44:32 UTC
Hi Ganesh, Just to let you know Jay has moved to a different team so I can help you. The signature for the tag_delete method takes a string for the tag name (not a hash) as shown in the code here: https://github.com/ManageIQ/manageiq-automation_engine/blob/master/lib/miq_automation_engine/engine/miq_ae_method_service/miq_ae_service_methods.rb#L136 https://github.com/ManageIQ/manageiq-automation_engine/blob/master/lib/miq_automation_engine/engine/miq_ae_method_service/miq_ae_service_methods.rb#L122 Methods added: tag_delete(category, entry) // Returns false if tag cannot be deleted tag_delete!(category, entry) // Raises error if tag cannot be deleted For your example you would use: $evm.execute('tag_delete', 'location', 'test_tag') While the enhancement request text specified passing a hash engineering ultimately determine that was overkill as the require data would be a single name value. In addition this matches other tagging method calls, like "tag_exists?(category, entry)" exposed through the same interface. See https://github.com/ManageIQ/manageiq-automation_engine/blob/master/lib/miq_automation_engine/engine/miq_ae_method_service/miq_ae_service_methods.rb#L103 Fixed! Verified on version: 5.11.1.0.20191105221526_f1764d4 Thank you so much @Greg Automated this scenario in PR: https://github.com/ManageIQ/integration_tests/pull/9616 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2019:4201 |