def update_state_in_older_versions(obj):
    # if requested version is < 1.2, convert AVAILABLE to the old NOSTATE
    if (pecan.request.version.minor < versions.MINOR_2_AVAILABLE_STATE and
            obj.provision_state == ir_states.AVAILABLE):
        obj.provision_state = ir_states.NOSTATE
Plot windspeed and power production of a turbine
dataset/ETHPy150Open openstack/ironic/ironic/api/controllers/v1/node.py/update_state_in_older_versions--crossover with--dataset/ETHPy150Open cigroup-ol/windml/windml/visualization/plot_timeseries.py/plot_timeseries