From: Sean Dague Subject: Re: [Xen-changelog] Deal with domain info going away (handle new error path introduced by Date: Thu, 15 Sep 2005 13:47:41 -0400 Message-ID: <20050915174741.GC26967@underhill.no-ip.org> References: <1126796328.18404.5.camel@w-stekloff.beaverton.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1871929145==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Steven Hand Cc: Daniel Stekloff , xen-devel@lists.xensource.com, steven@xensource.com List-Id: xen-devel@lists.xenproject.org --===============1871929145== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XOIedfhf+7KOe/yw" Content-Disposition: inline --XOIedfhf+7KOe/yw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Just as a quick nag, it would be nice if this patch had come across xen-devel *before* being checked in, instead of afterwards. ;) =20 The catch happened pretty quickly on the changelog (thanks Dan), but it would still have been nice to catch it before it broke anyone. -Sean On Thu, Sep 15, 2005 at 05:08:14PM +0100, Steven Hand wrote: >=20 > >On Thu, 2005-09-15 at 04:14 +0000, Xen patchbot -unstable wrote: > >> # HG changeset patch > >> # User shand@ubuntu.eng.hq.xensource.com > >> # Node ID bd477fcd32aba8a3196873b702ae6ea0d8a7e43b > >> # Parent 36f8c5900e8646b0465d92d602bd07f3d3b5a966 > >> Deal with domain info going away (handle new error path introduced by= =20 > >> cset 6828). Believe Dan Smith is working up a more comprehensive patch. > >>=20 > >> Signed-off-by: Steven Hand > >>=20 > >> diff -r 36f8c5900e86 -r bd477fcd32ab tools/python/xen/xend/XendDomainI= nfo.py > >> --- a/tools/python/xen/xend/XendDomainInfo.py Thu Sep 15 01:46:40 200 > 5 > >> +++ b/tools/python/xen/xend/XendDomainInfo.py Thu Sep 15 04:12:54 200 > 5 > >> @@ -353,7 +353,12 @@ > >> def update(self, info=3DNone): > >> """Update with info from xc.domain_getinfo(). > >> """ > >> - self.info =3D info or dom_get(self.domid) > >> + if info: > >> + self.info =3D info > >> + else: > >> + di =3D dom_get(self.domid) > >> + if not di: > >> + return=20 > > > > > > > >Um.... shouldn't there be a "self.info =3D di" somewhere? >=20 > Oops - yes.=20 >=20 > cheers, >=20 > S. >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >=20 --=20 __________________________________________________________________ Sean Dague Mid-Hudson Valley sean at dague dot net Linux Users Group http://dague.net http://mhvlug.org There is no silver bullet. Plus, werewolves make better neighbors than zombies, and they tend to keep the vampire population down. __________________________________________________________________ --XOIedfhf+7KOe/yw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFDKbO9SamXem9TdyYRAtp1AJ9c0Ixeqy9mL44U/YRwD5CYLcFIMgCeIxKa NztUmQ8yIuqAfgtH4o1VOxk= =vPj7 -----END PGP SIGNATURE----- --XOIedfhf+7KOe/yw-- --===============1871929145== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1871929145==--