rpms/python-boto/F-12 python-boto-1.9b-image.patch, NONE, 1.1 python-boto.spec, 1.13, 1.14
Robert Scheck
robert at fedoraproject.org
Tue Feb 9 00:42:54 UTC 2010
Author: robert
Update of /cvs/pkgs/rpms/python-boto/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20241/F-12
Modified Files:
python-boto.spec
Added Files:
python-boto-1.9b-image.patch
Log Message:
Backported upstream patch for image registration (#561216)
python-boto-1.9b-image.patch:
connection.py | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
--- NEW FILE python-boto-1.9b-image.patch ---
Don't require Name param on RegisterImage (even though EC2 docs say it is required)
and change Image to ImageLocation. Fixes issue 323:
- http://code.google.com/p/boto/issues/detail?id=323
- http://code.google.com/p/boto/source/detail?r=1448
--- boto-1.9b/boto/ec2/connection.py 2009-12-21 14:59:03.000000000 +0100
+++ boto-1.9b/boto/ec2/connection.py.image 2010-02-09 01:36:11.000000000 +0100
@@ -176,11 +176,11 @@
except IndexError: # None of those images available
return None
- def register_image(self, name, description=None, image_location=None,
+ def register_image(self, name=None, description=None, image_location=None,
architecture=None, kernel_id=None, ramdisk_id=None,
root_device_name=None, block_device_map=None):
"""
- Register an image.
+ Register an image. Valid only for EBS-based images.
:type name: string
:param name: The name of the AMI.
@@ -210,7 +210,9 @@
:rtype: string
:return: The new image id
"""
- params = {'Name': name}
+ params = {}
+ if name:
+ params['Name'] = name
if description:
params['Description'] = description
if architecture:
@@ -220,7 +222,7 @@
if ramdisk_id:
params['RamdiskId'] = ramdisk_id
if image_location:
- params['Location'] = image_location
+ params['ImageLocation'] = image_location
if root_device_name:
params['RootDeviceName'] = root_device_name
if block_device_map:
Index: python-boto.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-boto/F-12/python-boto.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -p -r1.13 -r1.14
--- python-boto.spec 9 Jan 2010 21:48:10 -0000 1.13
+++ python-boto.spec 9 Feb 2010 00:42:53 -0000 1.14
@@ -4,11 +4,12 @@
Summary: A simple lightweight interface to Amazon Web Services
Name: python-boto
Version: 1.9b
-Release: 1%{?dist}
+Release: 2%{?dist}
License: MIT
Group: Development/Languages
URL: http://code.google.com/p/%{pkgname}/
Source: http://boto.googlecode.com/files/%{pkgname}-%{version}.tar.gz
+Patch0: python-boto-1.9b-image.patch
BuildRequires: python-devel, python-setuptools-devel
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -22,6 +23,7 @@ use, lightweight wrapper around the Amaz
%prep
%setup -q -n %{pkgname}-%{version}
+%patch0 -p1 -b .image
%build
%{__python} setup.py build
@@ -46,6 +48,9 @@ rm -rf $RPM_BUILD_ROOT
%{python_sitelib}/*
%changelog
+* Tue Feb 09 2010 Robert Scheck <robert at fedoraproject.org> 1.9b-2
+- Backported upstream patch for image registration (#561216)
+
* Sat Jan 09 2010 Robert Scheck <robert at fedoraproject.org> 1.9b-1
- Upgrade to 1.9b
More information about the scm-commits
mailing list