"nova-manage project create" isn't working

Bug #615857 reported by OZAWA Tsuyoshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Vish Ishaya

Bug Description

The new command "nova-manage project create_zip" corrupts "nova-manage project create" command.

For example,

ozawa@localhost:~/workspace/trunk$ tools/with_venv.sh bin/nova-manage project create proj1 ozawa

should work, but it dump error as follows:

create matched multiple options:
        create
        create_zip

This is because use the function "lazy_match" uses "find()" function, so this must be changed to use "==" operator or something.

Related branches

Revision history for this message
Vish Ishaya (vishvananda) wrote :

This was introduced in the pep/pylint cleanup. The original name of the method was zip which i guess was too short. May i suggest simply renaming the method 'zipfile' instead of changing the logic of lazy match. I really like being able to execute the nova manage commands without typing the entire name. I've linked a branch with the fix.

Revision history for this message
OZAWA Tsuyoshi (ozawa-tsuyoshi) wrote :

Thank you for replying and dealing with this problem, vishvananda.
Your code is better than mine.

Changed in nova:
status: New → Fix Committed
assignee: nobody → vishvananda (vishvananda)
Eric Day (eday)
Changed in nova:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.