Bug 2168716

Summary: The line "#<ForemanVirtWhoConfigure::Config:0x000055efc9df6498>" should be removed from the message shown after deleting virt-who configuration from Satellite WebUI
Product: Red Hat Satellite Reporter: Jayant Bhatia <jbhatia>
Component: Virt-who Configure PluginAssignee: satellite6-bugs <satellite6-bugs>
Status: POST --- QA Contact: yanpliu <yanpliu>
Severity: low Docs Contact:
Priority: low    
Version: 6.13.0CC: lufu, saydas
Target Milestone: UnspecifiedKeywords: EasyFix, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jayant Bhatia 2023-02-09 20:37:00 UTC
Description of problem:

Deleting virt-who configuration shows following message on Satellite WebUI "Successfully deleted #<ForemanVirtWhoConfigure::Config:0x000055efc9df6498>" where the latter part "#<ForemanVirtWhoConfigure::Config:0x000055efc9df6498>" should be trimmed from the message. 


Version-Release number of selected component (if applicable): satellite-6.13.0-4.el8sat.noarch


How reproducible: Always


Steps to Reproduce:

1. Ensure that there is a virt-who configuration already created.

2. Navigate to Satellite WebUI -> Infrastructure -> Virt-who Configurations and delete the existing virt-who configuration.

3. The virt-who configuration gets successfully deleted as expected.


Actual results: Below message is shown on the screen after virt-who configuration is deleted.

        Successfully deleted #<ForemanVirtWhoConfigure::Config:0x000055efc9df6498>.


Expected results: #<ForemanVirtWhoConfigure::Config:0x000055efc9df6498>. should not be displayed on screen and the message should only say 'Successfully deleted'.


Additional info: This behavior is observed in Satellite 6.12 also.

Comment 1 Sayan Das 2023-05-09 11:32:27 UTC
Created 

Bug #36372: Display the config name correctly while creating, updating or deleting a virt-who config successfully. - virt-who configure - Foreman
https://projects.theforeman.org/issues/36372

Fixes #36372 - Show correct config name during create\update\delete by sayan3296 · Pull Request #162 · theforeman/foreman_virt_who_configure
https://github.com/theforeman/foreman_virt_who_configure/pull/162

Comment 2 Bryan Kearney 2023-05-10 00:03:07 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36372 has been resolved.