From 24d3a97bf45883814ccfc6951d5fc52784d35008 Mon Sep 17 00:00:00 2001 From: Josep Puigdemont Date: Tue, 8 Dec 2015 18:33:44 +0100 Subject: python-cliff: Fix object has no attribute debug error Apply fix provided by upstream for the "object has no attribute error" when help is called. Signed-off-by: Josep Puigdemont Signed-off-by: Bruce Ashfield --- ...1-Fix-object-has-no-attribute-debug-error.patch | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 meta-openstack/recipes-devtools/python/python-cliff/0001-Fix-object-has-no-attribute-debug-error.patch (limited to 'meta-openstack/recipes-devtools/python/python-cliff') diff --git a/meta-openstack/recipes-devtools/python/python-cliff/0001-Fix-object-has-no-attribute-debug-error.patch b/meta-openstack/recipes-devtools/python/python-cliff/0001-Fix-object-has-no-attribute-debug-error.patch new file mode 100644 index 0000000..38d5343 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-cliff/0001-Fix-object-has-no-attribute-debug-error.patch @@ -0,0 +1,32 @@ +From f2c997161df01579cabf312a694289a1a83ae6ca Mon Sep 17 00:00:00 2001 +From: TerryHowe +Date: Thu, 28 May 2015 07:55:11 -0600 +Subject: [PATCH] Fix object has no attribute debug error + +When print_help_if_requested is called, if there is an error, +"object has no attribute 'debug'" gets printed out. This is +because the parser is passed in to the command rather than the +parsed arguments. + +Change-Id: I1863421eff82b3f493d276432369ada9f783b165 +Partial-Bug: #1459519 +--- + cliff/app.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cliff/app.py b/cliff/app.py +index e052571..a41386a 100644 +--- a/cliff/app.py ++++ b/cliff/app.py +@@ -198,7 +198,7 @@ class App(object): + def print_help_if_requested(self): + if self.deferred_help and self.options.deferred_help: + action = HelpAction(None, None, default=self) +- action(self.parser, self.parser, None, None) ++ action(self.parser, self.options, None, None) + + def run(self, argv): + """Equivalent to the main program for the application. +-- +2.1.0 + -- cgit v1.2.3-54-g00ecf