summaryrefslogtreecommitdiff
path: root/heatclient/common
diff options
context:
space:
mode:
Diffstat (limited to 'heatclient/common')
-rw-r--r--heatclient/common/event_utils.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/heatclient/common/event_utils.py b/heatclient/common/event_utils.py
index 3e6b197..1b8b179 100644
--- a/heatclient/common/event_utils.py
+++ b/heatclient/common/event_utils.py
@@ -75,8 +75,11 @@ def get_events(hc, stack_id, event_args, nested_depth=0,
# Slice the list if marker is specified
if marker:
- marker_index = [e.id for e in events].index(marker)
- events = events[marker_index:]
+ try:
+ marker_index = [e.id for e in events].index(marker)
+ events = events[marker_index:]
+ except ValueError:
+ pass
# Slice the list if limit is specified
if limit: