Return-Path: X-Original-To: apmail-deltacloud-commits-archive@www.apache.org Delivered-To: apmail-deltacloud-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 25F02D3DF for ; Mon, 24 Sep 2012 23:33:25 +0000 (UTC) Received: (qmail 81262 invoked by uid 500); 24 Sep 2012 23:33:25 -0000 Delivered-To: apmail-deltacloud-commits-archive@deltacloud.apache.org Received: (qmail 81225 invoked by uid 500); 24 Sep 2012 23:33:25 -0000 Mailing-List: contact commits-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 commits@deltacloud.apache.org Received: (qmail 81209 invoked by uid 99); 24 Sep 2012 23:33:24 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2012 23:33:24 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id B32763B287; Mon, 24 Sep 2012 23:33:24 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: lutter@apache.org To: commits@deltacloud.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [2/2] git commit: ExceptionHandler: initialize list of exceptions to empty array Message-Id: <20120924233324.B32763B287@tyr.zones.apache.org> Date: Mon, 24 Sep 2012 23:33:24 +0000 (UTC) ExceptionHandler: initialize list of exceptions to empty array Drivers that do not have a exceptions do .. end block left the list as nil; this leads to errors if these drivers then cause an exception within a safely do .. end Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/972e6090 Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/972e6090 Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/972e6090 Branch: refs/heads/master Commit: 972e6090fd5e20194fb07294e615922b79753c14 Parents: cb6117a Author: David Lutterkort Authored: Mon Sep 24 16:29:51 2012 -0700 Committer: David Lutterkort Committed: Mon Sep 24 16:29:51 2012 -0700 ---------------------------------------------------------------------- server/lib/deltacloud/drivers/exceptions.rb | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/deltacloud/blob/972e6090/server/lib/deltacloud/drivers/exceptions.rb ---------------------------------------------------------------------- diff --git a/server/lib/deltacloud/drivers/exceptions.rb b/server/lib/deltacloud/drivers/exceptions.rb index 5e679a5..4b135bd 100644 --- a/server/lib/deltacloud/drivers/exceptions.rb +++ b/server/lib/deltacloud/drivers/exceptions.rb @@ -172,6 +172,7 @@ module Deltacloud end def self.exceptions(&block) + @definitions ||= [] @definitions = Exceptions.new(&block).exception_definitions if block_given? @definitions end