WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] RE: fix allowed operations when the power-on-mode is disabled

To: Javier Alvarez-Valle <javier.alvarez-valle@xxxxxxxxxx>, "'xen-api@xxxxxxxxxxxxxxxxxxx'" <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] RE: fix allowed operations when the power-on-mode is disabled
From: Dave Scott <Dave.Scott@xxxxxxxxxxxxx>
Date: Fri, 20 Nov 2009 15:15:42 +0000
Accept-language: en-US
Acceptlanguage: en-US
Cc:
Delivery-date: Fri, 20 Nov 2009 07:15:46 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4B2EA7702410EE4FB4AF54931A777FED4191B19EC0@xxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <4B2EA7702410EE4FB4AF54931A777FED4191B19EC0@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acpp50hjJZVdV8z6S7uZz6xTamc5JAADMXMA
Thread-topic: fix allowed operations when the power-on-mode is disabled

Hi Javier,

 

I think the patch is fine. The only thing I’d tweak is the

  Db.Host.get_power_on_mode

Can be written as

  record.Db_actions.host_power_on_mode

 

This works because the host record is already available in the function.

 

I’ll make that tweak and push the patch for you.

 

Cheers,

Dave

 

From: Javier Alvarez-Valle
Sent: 20 November 2009 13:42
To: 'xen-api@xxxxxxxxxxxxxxxxxxx'
Cc: Dave Scott
Subject: fix allowed operations when the power-on-mode is disabled

 

Hi,

 

This patch removes power_on from the allowed operations when the power-on-mode is disabled.

Please review this carefully I am not sure if this is completely correct.

 

Thanks,

 

Javier

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>