Useless line of code in shell.py

Bug #1707103 reported by Huan Xiong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Undecided
Unassigned
python-openstackclient (Ubuntu)
Invalid
Undecided
Huan Xiong

Bug Description

This line in shell.py is useless:

  osprofiler_profiler = importutils.try_import("osprofiler.profiler")

It was introduced in commit 16f00833 where it was useful. Most code in that commit was later moved to osc-lib in commit 6a15f90d. However, the above line was left uncleaned up.

Huan Xiong (huan.xiong)
description: updated
Huan Xiong (huan.xiong)
description: updated
Huan Xiong (huan.xiong)
Changed in python-openstackclient (Ubuntu):
assignee: nobody → Huan Xiong (huan.xiong)
Revision history for this message
Corey Bryant (corey.bryant) wrote :

Hi Huan,

Thanks for reporting this bug. This is reported against the Ubuntu package only, so I'm going to also target the upstream python-openstackclient project. We'll need to get this fix upstream before backporting to the Ubuntu package.

Thanks,
Corey

Revision history for this message
Huan Xiong (huan.xiong) wrote :

Corey, thanks for pointing that out. It was the first bug I created on
launchpad and I didn't notice the difference. I thought I was on upstream
project page.

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

Reviewed: https://review.openstack.org/501966
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=61025bf1023328893904c3cc00bea28a238be544
Submitter: Jenkins
Branch: master

commit 61025bf1023328893904c3cc00bea28a238be544
Author: Huan Xiong <email address hidden>
Date: Fri Sep 8 06:28:15 2017 +0000

    Useless line of code in shell.py

    Shell.py contains lines to import osprofiler. This is useless
    because osprofiler options support code was moved to osc-lib.

    Removed it.

    Change-Id: Ibec17700c87df908640848c3787d190ca66a7bcf
    Closes-Bug: #1707103

Changed in python-openstackclient:
status: New → Fix Released
Revision history for this message
James Page (james-page) wrote :

Marking Ubuntu task as invalid; this will be included in the next set of updates for openstackclient.

Changed in python-openstackclient (Ubuntu):
status: New → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-openstackclient 3.13.0

This issue was fixed in the openstack/python-openstackclient 3.13.0 release.

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.