Flow add "requires" is not validating the full name

Bug #1556533 reported by Michael Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
taskflow
Invalid
Undecided
Unassigned

Bug Description

I have a linear flow that adds the following task:

        update_listener_flow.add(amphora_driver_tasks.ListenersUpdate(
            requires=[constants.LOADBALANCER, constants.LISTENERS]))

Where constants.LISTENERS = 'listeners'

The task is defined as:

class ListenersUpdate(BaseAmphoraTask):
    def execute(self, loadbalancer, listeners):

The storage for the flow at load time is:

store={constants.LISTENER:listener, constants.VIP: vip,constants. LOADBALANCER: load_balancer, constants.UPDATE_DICT:listener_updates})

Where constants.LISTENER = 'listener'

No other tasks provide constants.LISTENERS in the flow, but the flow loads and runs without error.

I would expect the flow load and/or run should throw an exception stating that a required parameter "listeners" is not present.

Revision history for this message
Michael Johnson (johnsom) wrote :

Darn, the error was masked. This is working as it should.

Changed in taskflow:
status: New → Invalid
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.