Skip to content

Commit

Permalink
add an accessor for the Condition of an Action
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodall <william@osrfoundation.org>
  • Loading branch information
wjwwood committed Aug 23, 2018
1 parent c45a877 commit 3540e2a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions launch/launch/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ def __init__(self, *, condition: Optional[Condition] = None) -> None:
"""
self.__condition = condition

@property
def condition(self) -> Optional[Condition]:
"""Getter for condition."""
return self.__condition

def describe(self) -> Text:
"""Return a description of this Action."""
return self.__repr__()
Expand Down

0 comments on commit 3540e2a

Please sign in to comment.