Hide Forgot
Description of problem: JON 3.01 RC1 CLI sample drift.js ...error using utility method "fetchHistory" Version-Release number of selected component (if applicable): JON 3.01 RC1 How reproducible: 100% Steps to Reproduce: 1. with the UI ... create a drift configuration named 'mydrift' (note: in the base directory ... there is a folder named 'folder1') 2. with the CLI ... ./rhq-cli.sh -u rhqadmin -p rhqadmin 3. exec -f samples/drift.js 3. fetchHistory(10002, 'folder1/abc.txt') Actual results: ReferenceError: "foreach" is not defined. (<Unknown source>#198) Expected results: Additional info: rhqadmin@localhost:7080$ fetchHistory(10002, 'folder1/abc.txt') ReferenceError: "foreach" is not defined. (<Unknown source>#198) fetchHistory(10002, 'folder1/abc.txt') ^
note: in the above example the base folder being watched by drift is /home/mfoley/folderwatchedbyDrift under that ... there is a folder named 'folder1' ... and then a filed named abc.txt in that folder. 10002 is the resource id
new information ... i didn't have util.js loaded .... rhqadmin@localhost:7080$ fetchHistory(10002, 'folder1/abc.txt') NativeObject: className: Object