Bug 785000
Summary: | JON 3.0.1 RC#1 CLI Doc example 2.7 echo_args.js does not work | ||||||
---|---|---|---|---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Mike Foley <mfoley> | ||||
Component: | Documentation | Assignee: | Deon Ballard <dlackey> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 3.0.1 | CC: | hrupp | ||||
Target Milestone: | --- | ||||||
Target Release: | JON 3.0.1 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-06-21 23:15:55 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 782579 | ||||||
Attachments: |
|
12/30/2012 BZ triage meeting mfoley, ccrouch, loleary, asantos I think the error was identified in bug 784887. I made the fix Marco specified and the script worked. One thing, is that -f apparently requires an absolute path to the script, not a relative path. So -f echo_args.js won't work, even if it is in the same directory as the rhq-cli.sh script. -f /path/to/echo_args.js does work. I'll update the docs for that. Closing. |
Created attachment 557743 [details] echo_args.js Description of problem: JON 3.0.1 RC#1 CLI Doc example 2.7 echo_args.js does not work Version-Release number of selected component (if applicable): JON 3.01 RC#1 How reproducible: 100% Steps to Reproduce: 1. follow the doc example 2. ./rhq-cli.sh -u rhqadmin -p rhqadmin 3. exec -f echo_args.js --args-style=named x=1, y=2 Actual results: rhqadmin@localhost:7080$ exec -f echo_args.js --args-style=named x=1, y=2 sun.org.mozilla.javascript.EvaluatorException: missing ) after argument list (<Unknown source>#2) in <Unknown source> at line number 2 ^ Expected results: working doc example Additional info: