ERROR: 'Namespace' object has no attribute 'func'
Bug #1295356 reported by
Johannes Erdfelt
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance Client |
Fix Released
|
Undecided
|
ZhiQiang Fan | ||
Python client library for Sahara |
Fix Released
|
Medium
|
ZhiQiang Fan | ||
python-magnumclient |
Fix Released
|
Undecided
|
Unassigned | ||
python-novaclient |
Fix Released
|
Undecided
|
Johannes Erdfelt |
Bug Description
When running just 'nova' under Python 2, you get the usage (same as 'nova help').
When running just 'nova' under Python 3, you get the error: ERROR: 'Namespace' object has no attribute 'func'
This is because map() is used to decode sys.argv, but under Python 3 it returns a map object which is an iterable. Some code later tries to use this in a boolean context and it will always return True, even if it's empty.
Python 2 would return a list from the map built-in which is why it doesn't exhibit this failure.
Changed in python-novaclient: | |
assignee: | nobody → Johannes Erdfelt (johannes.erdfelt) |
Changed in python-novaclient: | |
milestone: | none → 2.18.0 |
Changed in python-novaclient: | |
status: | Fix Committed → Fix Released |
Changed in python-saharaclient: | |
assignee: | nobody → ZhiQiang Fan (aji-zqfan) |
Changed in python-magnumclient: | |
assignee: | nobody → ZhiQiang Fan (aji-zqfan) |
Changed in python-glanceclient: | |
status: | Confirmed → In Progress |
Changed in python-saharaclient: | |
importance: | Undecided → Medium |
Changed in python-magnumclient: | |
status: | New → Fix Committed |
assignee: | ZhiQiang Fan (aji-zqfan) → nobody |
Changed in python-glanceclient: | |
milestone: | none → 1.2.0 |
status: | Fix Committed → Fix Released |
Changed in python-magnumclient: | |
status: | Fix Committed → Fix Released |
Changed in python-saharaclient: | |
milestone: | none → 0.12.0 |
Changed in python-saharaclient: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/81911
Review: https:/