Deprecate command_name argument

Bug #1308021 reported by Vladimir Kozhukalov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
Undecided
Russell Haering

Bug Description

We have unused command_name argument in all extension methods. Let's remove it.

Changed in ironic:
assignee: nobody → Vladimir Kozhukalov (kozhukalov)
Changed in ironic:
assignee: Vladimir Kozhukalov (kozhukalov) → Russell Haering (russellhaering)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic-python-agent (master)

Reviewed: https://review.openstack.org/87147
Committed: https://git.openstack.org/cgit/openstack/ironic-python-agent/commit/?id=bf746732268c073b4749df1a1e35a762d9f8a816
Submitter: Jenkins
Branch: master

commit bf746732268c073b4749df1a1e35a762d9f8a816
Author: Russell Haering <email address hidden>
Date: Sun Apr 13 17:45:18 2014 -0700

    Decorated commands no longer take command_name

    Prior to the (sync|async)_command decorators, extension methods had to
    construct command results themselves, which required that they have
    the name of the command being executed.

    When the async_command decorator was introduced, we wanted to maintain
    the current command interface, so that a command could be made
    asynchronous simply by adding the decorator.

    The introduction of the sync_command decorator allows us to satisfy
    this objective, without requiring decorated methods to accept a
    command_name. This patch modifies both decorators to no longer pass
    the command_name argument, and modifies existing command methods not
    to expect one.

    Closes-Bug: #1308021
    Change-Id: I1b33bb7519588cdcb79c6f4d2b10c1e5e8c0cca3

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