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 C71E3E3A9 for ; Wed, 6 Feb 2013 10:01:44 +0000 (UTC) Received: (qmail 94882 invoked by uid 500); 6 Feb 2013 10:01:44 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 94757 invoked by uid 500); 6 Feb 2013 10:01:43 -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 94710 invoked by uid 99); 6 Feb 2013 10:01:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Feb 2013 10:01:42 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [116.50.57.190] (HELO cluster-k.mailcontrol.com) (116.50.57.190) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Feb 2013 10:01:33 +0000 Received: from mail1.fujitsu.com.au (mail1.fujitsu.com.au [216.14.192.229]) by rly01k.srv.mailcontrol.com (MailControl) with ESMTP id r16A0wHL001043 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Wed, 6 Feb 2013 10:01:03 GMT Received: from localhost (localhost.localdomain [127.0.0.1]) by mail1.fujitsu.com.au (Postfix) with ESMTP id 0894529D655 for ; Wed, 6 Feb 2013 21:00:58 +1100 (EST) X-Virus-Scanned: amavisd-new at mail1.fujitsu.com.au Received: from mail1.fujitsu.com.au ([127.0.0.1]) by localhost (mail1.fujitsu.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id cYWwJZJkTf4C for ; Wed, 6 Feb 2013 21:00:57 +1100 (EST) Received: from SYD0633.au.fujitsu.com (unknown [137.172.78.131]) by mail1.fujitsu.com.au (Postfix) with ESMTP id DE16929D654 for ; Wed, 6 Feb 2013 21:00:57 +1100 (EST) Received: from mailfilter1.au.fjanz.com (137.172.19.78) by SYD0632.au.fujitsu.com (137.172.78.131) with Microsoft SMTP Server id 8.3.83.0; Wed, 6 Feb 2013 21:00:57 +1100 Received: from RadwareLoad Balancer (137.172.78.70) [137.172.78.70] by mailfilter1.au.fjanz.com - Websense Email Security (7.0.0); Wed, 06 Feb 2013 21:00:57 +1100 Received: from FALEX03.au.fjanz.com ([137.172.72.104]) by SYD0630.au.fjanz.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 6 Feb 2013 21:00:47 +1100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: [PATCH] rhevm: DTACLOUD-452: expose create_image action only when stopped Date: Wed, 6 Feb 2013 21:00:46 +1100 Message-ID: <434A0ECB689CAF49A3A2321F30F2AB8324C1AC61@FALEX03.au.fjanz.com> In-Reply-To: <20130206095504.GA31896@boosh.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] rhevm: DTACLOUD-452: expose create_image action only when stopped Thread-Index: Ac4EUCtzQkbsSmPOT7mbMK85EIcafQAAKC2Q References: <1360116563-5588-1-git-send-email-diesk@fast.au.fujitsu.com> <20130206095504.GA31896@boosh.local> From: "Koper, Dies" To: X-OriginalArrivalTime: 06 Feb 2013 10:00:47.0569 (UTC) FILETIME=[D6118410:01CE0450] X-SEF-Processed: 7_0_0_00239__2013_02_06_21_00_57 X-Scanned-By: MailControl 11783.69 (www.mailcontrol.com) on 10.75.0.111 X-Virus-Checked: Checked by ClamAV on apache.org Thanks. Pushed as 8d3868244fd0666c43a1811eb4205e4639f7f221 Regards, Dies Koper > -----Original Message----- > From: Michal Fojtik [mailto:mfojtik@redhat.com] > Sent: Wednesday, 6 February 2013 8:55 PM > To: dev@deltacloud.apache.org > Subject: Re: [PATCH] rhevm: DTACLOUD-452: expose create_image action only > when stopped >=20 > On 02/06, diesk@fast.au.fujitsu.com wrote: >=20 > ACK! >=20 > -- Michal >=20 > > From: Dies Koper > > > > --- > > server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb > b/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb > > index 69cc563..65ba26d 100644 > > --- a/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb > > +++ b/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb > > @@ -254,6 +254,7 @@ class RhevmDriver < Deltacloud::BaseDriver > > public_addresses << InstanceAddress.new(inst.vnc[:address], :port =3D> > inst.vnc[:port], :type =3D> :vnc) > > end > > > > + can_create_image =3D state =3D=3D 'STOPPED' > > # Remove 'destroy' operation from list of actions when RHEV-M instance > > # is suspended or paused. > > if state =3D=3D 'PAUSED' > > @@ -261,7 +262,6 @@ class RhevmDriver < Deltacloud::BaseDriver > > actions.delete(:destroy) > > else > > actions =3D instance_actions_for(state) > > - can_create_image =3D true > > end > > > > Instance.new( > > @@ -277,7 +277,7 @@ class RhevmDriver < Deltacloud::BaseDriver > > :hardware_profile_id =3D> profile.id, > > :public_addresses =3D> public_addresses, > > :private_addresses =3D> [], > > - :create_image =3D> can_create_image || false > > + :create_image =3D> can_create_image > > ) > > end > > > > -- > > 1.8.0.msysgit.0 > > > > >=20 > -- > Michal Fojtik > Deltacloud API, CloudForms