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 03E30EA4F for ; Mon, 18 Feb 2013 22:57:06 +0000 (UTC) Received: (qmail 25237 invoked by uid 500); 18 Feb 2013 22:57:05 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 25167 invoked by uid 500); 18 Feb 2013 22:57:05 -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 25150 invoked by uid 99); 18 Feb 2013 22:57:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2013 22:57:05 +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 (nike.apache.org: domain of lutter@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; Mon, 18 Feb 2013 22:56:58 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r1IMuaLt027292 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 18 Feb 2013 17:56:36 -0500 Received: from avon.watzmann.net (ovpn-112-34.phx2.redhat.com [10.3.112.34]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r1IMuYJI008315 for ; Mon, 18 Feb 2013 17:56:35 -0500 From: lutter@redhat.com To: dev@deltacloud.apache.org Subject: [PATCH 1/2] * lib/initializers/mock_initialize.rb: fix typo Date: Mon, 18 Feb 2013 14:56:29 -0800 Message-Id: <1361228190-2376-2-git-send-email-lutter@redhat.com> In-Reply-To: <1361228190-2376-1-git-send-email-lutter@redhat.com> References: <1361228190-2376-1-git-send-email-lutter@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-Virus-Checked: Checked by ClamAV on apache.org From: David Lutterkort We did not create MOCK_STORAGE_DIR when it was missing --- server/lib/initializers/mock_initialize.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/lib/initializers/mock_initialize.rb b/server/lib/initializers/mock_initialize.rb index c8c24e9..3575a38 100644 --- a/server/lib/initializers/mock_initialize.rb +++ b/server/lib/initializers/mock_initialize.rb @@ -11,5 +11,6 @@ BASE_STORAGE_DIR = File.join('/', 'var', 'tmp', "deltacloud-#{ENV['USER']}") # MOCK_STORAGE_DIR = ENV['DELTACLOUD_MOCK_STORAGE'] || File.join(BASE_STORAGE_DIR, 'mock') -FileUtils.mkpath(BASE_STORAGE_DIR, :mode => 0750) unless File.directory?(BASE_STORAGE_DIR) -FileUtils.mkpath(BASE_STORAGE_DIR, :mode => 0750) unless File.directory?(MOCK_STORAGE_DIR) +[BASE_STORAGE_DIR, MOCK_STORAGE_DIR].each do |p| + FileUtils.mkpath(p, :mode => 0750) unless File.directory?(p) +end -- 1.8.1.2