Red Hat Bugzilla – Bug 602676
Agent side script: unset of environment variable is not working
Last modified: 2014-05-29 16:27:08 EDT
Description of problem:
Unset of environment vairable that should be passed for the agent side script execution is not working.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Browse to JBoss AS Server
2. Click on Inventory and scroll down and click on Manuall add "Script" OK.
3. Enter the path of the script. Uncheck the Unset box and enter the environment variable.
4. Click Save.
5. Go to Connection subtab and click edit.
6. Check the unset box and click save.
The environemnt variable is retained and the unset do not work.
Environment variable should be unset and nothing should be passed to script.
qa: please test this against a gwt build
Tried to test this in rhq build#352.
There is no 'Manually Add' section to add a script to inventory to JBoss AS Server.
However, tested this bug on jon2.4.GA.
Navigated to JBoassAs inventory, manually added a script, clicked edit in 'Connection' subtab and checked the unset check box and environment variable is grayed out. Clicking OK button saved this and environment variable is unset.
Please refer the attached screen shot.
Created attachment 450716 [details]
Tested on gwt build (rhq build#442)
There is a resource tree right click option to manually add a script.
Navigated to the JBossas resource tree and clicked on right click option 'Script'.
Entered path and environment variable. After clicking 'Finish' the script is added.
Navigated to Jbossas Resource -> Resources -> Scripts -> script.sh -> Inventory ->Connection Settings subtab .
However, the 'Save' button is not enabled after checking the unset check box.
Please refer the attached screenshot.
Created attachment 455031 [details]