TypeError in database view error handle

Bug #1304623 reported by Matthew D. Wood
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Undecided
Matthew D. Wood

Bug Description

In error handling code inside openstack_dashboard/dashboards/project/databases/views.py, DetailView.get_data,
on the logging line:
            LOG.error('Unable to retrieve flavor details'
                      ' for database instance: %s') % instance_id

That line will always produce the following error:
    openstack_dashboard.dashboards.project.databases.views in get_data
    TypeError: unsupported operand type(s) for %: 'NoneType' and 'unicode'

It's just a parenthesis issue.

Changed in horizon:
assignee: nobody → Matthew D. Wood (woodm1979)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/86133
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=53a469cdad6cb8db1c7a06ef6f4d795e67d7bf0f
Submitter: Jenkins
Branch: master

commit 53a469cdad6cb8db1c7a06ef6f4d795e67d7bf0f
Author: woodm1979 <email address hidden>
Date: Tue Apr 8 13:47:26 2014 -0600

    TypeError in database view error handle

    In error handling code inside
    openstack_dashboard/dashboards/project/databases/views.py,
    DetailView.get_data, on the logging line:
                LOG.error('Unable to retrieve flavor details'
                          ' for database instance: %s') % instance_id

    That line will always produce the following error:
        openstack_dashboard.dashboards.project.databases.views in get_data
        TypeError: unsupported operand type(s) for %: 'NoneType' and 'unicode'

    It's just a parenthesis issue.

    Change-Id: Id3b551bf393a4a10ee18b570e91ac3e474692f8b
    Closes-Bug: 1304623

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
milestone: none → juno-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: juno-1 → 2014.2
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.