assignemt with indexation doesn't work

Bug #1358545 reported by Stan Lagun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
High
Stan Lagun

Bug Description

Currently MuranoPL assignment expressions fail when expression uses indexation except for the most trivial cases.
For example neither of the following work

$myDict[$keyName]: value
$myDict['A']['B']: value (even if $myDict['A'] is a dictionary)
$myList[2 + 2]: value
$myList[$index]: value

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

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

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

Reviewed: https://review.openstack.org/115154
Committed: https://git.openstack.org/cgit/stackforge/murano/commit/?id=8a7b2cef50499417f620707ea0f2b282457a2c8a
Submitter: Jenkins
Branch: master

commit 8a7b2cef50499417f620707ea0f2b282457a2c8a
Author: Stan Lagun <email address hidden>
Date: Tue Aug 19 04:06:55 2014 +0400

    LHS assignment expressions didn't work with non-trivial indexation

    Most of assignment expressions involving indexation operator except
    for the most trivial one fail.

    For example the following failed:

    $myDict[$keyName]: value
    $myDict['A']['B']: value (even if $myDict['A'] is a dictionary)
    $myList[2 + 2]: value
    $myList[$index]: value

    This commit adds support for sub-expressions within LHS-expressions

    Change-Id: I4b72e85b5f9bda04c6156d5c8b07eb8f5358643d
    Closes-Bug: #1358545

Changed in murano:
status: In Progress → Fix Committed
ruhe (ruhe)
Changed in murano:
status: Fix Committed → Fix Released
Changed in murano:
milestone: juno-3 → 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.