Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0C1D8C0FB for ; Thu, 19 Jul 2012 13:03:42 +0000 (UTC) Received: (qmail 87101 invoked by uid 500); 19 Jul 2012 13:03:41 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 86984 invoked by uid 500); 19 Jul 2012 13:03:41 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 86790 invoked by uid 99); 19 Jul 2012 13:03:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jul 2012 13:03:38 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mfojtik@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jul 2012 13:03:32 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6JD3CIA001980 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 19 Jul 2012 09:03:12 -0400 Received: from dhcp-29-121.brq.redhat.com (dhcp-29-121.brq.redhat.com [10.34.29.121]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q6JD1l2m031416 for ; Thu, 19 Jul 2012 09:03:11 -0400 From: mfojtik@redhat.com To: dev@deltacloud.apache.org Subject: [PATCH core 04/16] Core: The 'supported_collections' helper now return correct array Date: Thu, 19 Jul 2012 15:02:37 +0200 Message-Id: <1342702969-51397-4-git-send-email-mfojtik@redhat.com> In-Reply-To: <1342702969-51397-1-git-send-email-mfojtik@redhat.com> References: <1342702969-51397-1-git-send-email-mfojtik@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-Virus-Checked: Checked by ClamAV on apache.org From: Michal Fojtik Signed-off-by: Michal fojtik --- server/lib/deltacloud/helpers/deltacloud_helper.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/lib/deltacloud/helpers/deltacloud_helper.rb b/server/lib/deltacloud/helpers/deltacloud_helper.rb index cec22ac..047e1b2 100644 --- a/server/lib/deltacloud/helpers/deltacloud_helper.rb +++ b/server/lib/deltacloud/helpers/deltacloud_helper.rb @@ -19,6 +19,7 @@ module Deltacloud::Helpers require 'benchmark' def supported_collections + collection_arr = [] Deltacloud::Collections.deltacloud_modules.each do |m| m.collections.each do |c| # Get the required capability for the :index operation (like 'realms' or 'instance_state_machine') @@ -27,8 +28,10 @@ module Deltacloud::Helpers # for the Sinatra::Base class evaluate to 'true' next if m.settings.respond_to?(:capability) and !m.settings.capability(index_operation_capability) yield c if block_given? + collection_arr << c end end + collection_arr end def auth_feature_name -- 1.7.10.2