Bug 1033155 - Minor error in jbossas module (CLI sample files)
Summary: Minor error in jbossas module (CLI sample files)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: CLI
Version: JON 3.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: CR01
: JON 3.2.0
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-21 15:53 UTC by Filip Brychta
Modified: 2014-01-02 20:34 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-02 20:34:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Filip Brychta 2013-11-21 15:53:45 UTC
Description of problem:
ReferenceError: "foreach" is not defined. (modules:/jbossas#742)

Following line:
foreach(group.explicitResources, function(resource) {
should look like this:
util.foreach(group.explicitResources, function(resource){

Version-Release number of selected component (if applicable):
Jon3.2.ER5 and master as well:
Version :	
4.10.0-SNAPSHOT
Build Number :	
cb5f098

Comment 1 Lukas Krejci 2013-11-21 20:50:39 UTC
Note that this was fixed POST ER7.

commit bdd5e7c74b6620cd8ec9f46ac4132ca44429e57c
Author: Lukas Krejci <lkrejci>
Date:   Thu Nov 21 21:46:20 2013 +0100

    [BZ 1033155] - foreach is not a function.
    Should use require("modules:/util").foreach().

Comment 2 Simeon Pinder 2013-12-03 23:19:28 UTC
Moving to ON_QA for testing in latest(CR1) brew build.

Comment 3 Filip Brychta 2013-12-04 08:56:01 UTC
Verified on:
Version :	
3.2.0.CR1
Build Number :	
6ecd678:d0dc0b6


Note You need to log in before you can comment on or make changes to this bug.