error in package-create command

Bug #1502175 reported by Dmytro Dovbii
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-muranoclient
Fix Released
Medium
Dmytro Dovbii

Bug Description

Attempt to create package with `package-create` command causes to error:

(venv)ddovbii@ddovbii-pc:~/testpackage$ murano --debug package-create -c ~/Desktop/UpdateExecutor/Classes/ --ui ~/Desktop/UpdateExecutor/UI/ui.yaml
Making authentication request to http://172.16.40.136:5000/v2.0/tokens
Starting new HTTP connection (1): 172.16.40.136
"POST /v2.0/tokens HTTP/1.1" 200 4912
Traceback (most recent call last):
  File "/home/ddovbii/testpackage/venv/bin/murano", line 10, in <module>
    sys.exit(main())
  File "/home/ddovbii/work/python-muranoclient/muranoclient/shell.py", line 441, in main
    MuranoShell().main(args)
  File "/home/ddovbii/work/python-muranoclient/muranoclient/shell.py", line 400, in main
    args.func(client, args)
  File "/home/ddovbii/work/python-muranoclient/muranoclient/v1/shell.py", line 891, in do_package_create
    archive_name = os.path.splitext(os.path.basename(args.template))[0]
  File "/home/ddovbii/testpackage/venv/lib/python2.7/posixpath.py", line 121, in basename
    i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-muranoclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/230491

Changed in python-muranoclient:
assignee: nobody → Dmytro Dovbii (ddovbii)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-muranoclient (master)

Reviewed: https://review.openstack.org/230491
Committed: https://git.openstack.org/cgit/openstack/python-muranoclient/commit/?id=30a6932fbf316261b5d00e9c8fa238f47b3377ad
Submitter: Jenkins
Branch: master

commit 30a6932fbf316261b5d00e9c8fa238f47b3377ad
Author: Dmytro Dovbii <email address hidden>
Date: Fri Oct 2 18:09:24 2015 +0300

    Fix archive name generation in package_create command

    The commit https://review.openstack.org/#/c/204048 broke the
    generatinon of result archive name in case when user create package
    from classes directory. This patch fixes this issue

    Change-Id: I279e60b150603827c2af7a95f55bcb44483d1d74
    Closes-Bug: #1502175

Changed in python-muranoclient:
status: In Progress → Fix Committed
Changed in python-muranoclient:
importance: Undecided → Medium
milestone: none → 0.7.2
Changed in python-muranoclient:
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.