File 0001-Fix-image-create-location-attribute.patch of Package python-openstackclient.1737
From a96e619f6dc38350d8ccc93a430087a262b7ca6d Mon Sep 17 00:00:00 2001
From: Marek Aufart <maufart@redhat.com>
Date: Fri, 17 Apr 2015 14:20:37 +0200
Subject: [PATCH] Fix skipped image create attribute location attr
Image create action accepts attribute called location,
in method body is list of allowed attributes, which contain
localtion, what is typo and this attribute was not passed to
glance. Fixed.
Change-Id: I357b06b63b8aa97f7a5f587ef3fcee7a4b360ed1
Closes-Bug: #1445460
(cherry picked from commit d363068617ea37cf17583c390df69f3bbe7ff45c)
---
openstackclient/image/v1/image.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: python-openstackclient-0.4.1/openstackclient/image/v1/image.py
===================================================================
--- python-openstackclient-0.4.1.orig/openstackclient/image/v1/image.py
+++ python-openstackclient-0.4.1/openstackclient/image/v1/image.py
@@ -172,7 +172,7 @@ class CreateImage(show.ShowOne):
kwargs = {}
copy_attrs = ('name', 'id', 'store', 'container_format',
'disk_format', 'owner', 'size', 'min_disk', 'min_ram',
- 'localtion', 'copy_from', 'volume', 'force',
+ 'location', 'copy_from', 'volume', 'force',
'checksum', 'properties')
for attr in copy_attrs:
if attr in parsed_args: