summaryrefslogtreecommitdiff
path: root/heatclient/common
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-03-02 11:33:21 +0000
committerGerrit Code Review <review@openstack.org>2016-03-02 11:33:21 +0000
commit4ce8335fa1c75955f8cb5c61948af040aba82072 (patch)
treea1b19720fd642101f6b91983f33a97e974cd1694 /heatclient/common
parent5d9cc24a7dd500e007ea133abd2afdb1607e564a (diff)
parentebdf0ebc941eb1d99452347cf69e73ab901e1301 (diff)
downloadpython-heatclient-1.0.0.tar.gz
Merge "Implement stack event list --follow"1.0.0
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: