From 92c247b8567e3ae85494ce8c63d36194d7fe3db1 Mon Sep 17 00:00:00 2001 From: Garrett Holmstrom Date: Thu, 26 Sep 2013 15:42:32 -0700 Subject: [PATCH] Fix auto-scaling PropagateAtLaunch parsing https://bugzilla.redhat.com/show_bug.cgi?id=1011682 https://github.com/boto/boto/pull/1739 --- boto-2.13.3-propagateatlaunch.patch | 19 +++++++++++++++++++ python-boto.spec | 7 +++++++ 2 files changed, 26 insertions(+) create mode 100644 boto-2.13.3-propagateatlaunch.patch diff --git a/boto-2.13.3-propagateatlaunch.patch b/boto-2.13.3-propagateatlaunch.patch new file mode 100644 index 0000000..99fc94a --- /dev/null +++ b/boto-2.13.3-propagateatlaunch.patch @@ -0,0 +1,19 @@ +Index: boto/boto/ec2/autoscale/tag.py +=================================================================== +--- boto.orig/boto/ec2/autoscale/tag.py ++++ boto/boto/ec2/autoscale/tag.py +@@ -55,11 +55,11 @@ class Tag(object): + self.key = value + elif name == 'Value': + self.value = value +- elif name == 'PropogateAtLaunch': ++ elif name == 'PropagateAtLaunch': + if value.lower() == 'true': +- self.propogate_at_launch = True ++ self.propagate_at_launch = True + else: +- self.propogate_at_launch = False ++ self.propagate_at_launch = False + elif name == 'ResourceId': + self.resource_id = value + elif name == 'ResourceType': diff --git a/python-boto.spec b/python-boto.spec index c166875..ab336cb 100644 --- a/python-boto.spec +++ b/python-boto.spec @@ -17,6 +17,10 @@ Patch1: boto-2.13.3-virttype.patch # Fix auto-scaling get_all_adjustment_types # https://github.com/boto/boto/pull/1538 Patch2: boto-2.9.9-adjtype.patch +# Fix auto-scaling PropagateAtLaunch parsing +# https://bugzilla.redhat.com/show_bug.cgi?id=1011682 +# https://github.com/boto/boto/pull/1739 +Patch3: boto-2.13.3-propagateatlaunch.patch %description @@ -30,6 +34,8 @@ use, lightweight wrapper around the Amazon services. %setup -q -n boto-%{version} %patch1 -p1 %patch2 -p1 +%patch3 -p1 + rm -r boto.egg-info %build @@ -67,6 +73,7 @@ rm -r boto.egg-info * Thu Sep 26 2013 Garrett Holmstrom - 2.13.3-1 - Updated to 2.13.3 - Note that this version changes register_image's virtualization_type parameter +- Fixed auto-scaling PropagateAtLaunch parsing (#1011682) * Mon Jul 29 2013 Garrett Holmstrom - 2.9.9-2 - Re-fixed autoscaling policy parsing (boto #1538)