Thanks @doug and that saves me days!
It's reasonable and I think we should make the private patch for our
environment. Thanks again.
-tobe from UnitedStack
------------------ Original ------------------
From: "Doug Shelley"<d...@tesora.com>;
Date: Mon, Jul 6, 2015 07:29 PM
To: "openstack-dev@lists."<openstack-dev@lists.openstack.org>;
Subject: Re: [openstack-dev] [trove]The patch from 191859 breaks
thecompatibility with python 2.6
Hi,
Python 2.6 support was dropped in Kilo (for all of OpenStack). The patchset
you mention was just merged last week and will be in Liberty. Trove is no
longer being tested with Python 2.6 so it is likely things like this will
continue to occur going forward.
Regards,
Doug
From: 陈迪豪 <chendi...@unitedstack.com>
Reply-To: OpenStack List <openstack-dev@lists.openstack.org>
Date: Monday, July 6, 2015 at 6:16 AM
To: OpenStack List <openstack-dev@lists.openstack.org>
Subject: [openstack-dev] [trove]The patch from 191859 breaks the compatibility
with python 2.6
Hi all,
We're deploying trove with python 2.6 in production. And the latest code from
https://review.openstack.org/#/c/191859 has broken the compatible with python
2.6.
The actual code which causes it is in
trove/guestagent/common/operating_system.py and looks like thest. Python 2.6
has syntax error for this "list" expression.
def list_files_in_directory(root_dir, recursive=False, pattern=None):
return {os.path.abspath(os.path.join(root, name))
for (root, _, files) in os.walk(root_dir, topdown=True)
if recursive or (root == root_dir)
for name in files
if not pattern or re.match(pattern, name)}
It would be great for anyone to fix it for both python 2.6 and 2.7, right?
- tobe
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev