Bug 2179725

Summary: message should be display correct when Edit virt-who configuration
Product: Red Hat Satellite Reporter: yanpliu <yanpliu>
Component: Virt-who Configure PluginAssignee: Sayan Das <saydas>
Status: VERIFIED --- QA Contact: yanpliu <yanpliu>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.13.0CC: chrobert, lufu, pcreech, saydas
Target Milestone: 6.14.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-foreman_virt_who_configure-0.5.14-1 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 yanpliu 2023-03-20 03:47:09 UTC
Description of problem:
Message should be display correct when Edit virt-who configuration.
Message "#<ForemanVirtWhoConfigure::Config:0x000055f23eed3d30>' should not display, it is not readable.



Version-Release number of selected component (if applicable):
Satellite6.13.0 snapshot 15
katello-4.7.0-1.el8sat.noarch
rubygem-foreman_virt_who_configure-0.5.13-1.el8sat.noarch
rubygem-hammer_cli_foreman_virt_who_configure-0.0.9-2.el8sat.noarch

How reproducible:
100%

Steps to Reproduce:
1. create a virt-who config by UI
2. Edit the virt-who config and click submit. when it successfully edit the virt-who config ,it displays the following message 
"Success
Successfully updated #<ForemanVirtWhoConfigure::Config:0x000055f23eed3d30>."


Actual results:
Edit virt-who config successfully, it display the Unreadable message "#<ForemanVirtWhoConfigure::Config:0x000055f23eed3d30>" 

Expected results:
it should display the message like this 
"ui_ahv_central virt-who Configuration has been successfully updated."

Additional info:

Comment 1 Sayan Das 2023-05-09 11:20:55 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 yanpliu 2023-06-08 06:22:37 UTC
Verification on Satellite6.14 snapshot 3.0
katello-4.9.0-0.1.rc2.el8sat.noarch
rubygem-foreman_virt_who_configure-0.5.14-1.el8sat.noarch
rubygem-hammer_cli_foreman_virt_who_configure-0.0.9-2.el8sat.noarch

This issue has been fixed.
1. create a virt-who config by UI
2. Edit the virt-who config and click submit. when it successfully edit the virt-who config ,it displays the following message "Success alert:Successfully updated esx_ui."

Comment 3 yanpliu 2023-07-05 01:13:14 UTC
Verification on Satellite6.14 snapshot 6.0
virt-who-1.30.14-1.el8.noarch
katello-4.9.0-1.el8sat.noarch
rubygem-foreman_virt_who_configure-0.5.15-1.el8sat.noarch
rubygem-hammer_cli_foreman_virt_who_configure-0.0.9-2.el8sat.noarch

This issue has been fixed.
1. create a virt-who config by UI
2. Edit the virt-who config and click submit. when it successfully edit the virt-who config ,it displays the following message "Success alert:Successfully updated esx_test."