diff --git a/e2e/libs/recurringjob/rest.py b/e2e/libs/recurringjob/rest.py index 334fdbafeb..4e6b9207a8 100644 --- a/e2e/libs/recurringjob/rest.py +++ b/e2e/libs/recurringjob/rest.py @@ -130,8 +130,8 @@ def _check_snapshot_created(self, volume_name, job_name): # but job_name is in spec.labels.RecurringJob # and crd doesn't support field selector # so need to filter by ourselves - if 'RecurringJob' in item['status']['labels'] and \ - item['status']['labels']['RecurringJob'] == job_name and \ + if 'RecurringJob' in item['spec']['labels'] and \ + item['spec']['labels']['RecurringJob'] == job_name and \ item['status']['readyToUse'] == True: snapshot_time = item['metadata']['creationTimestamp'] snapshot_time = datetime.strptime(snapshot_time, '%Y-%m-%dT%H:%M:%SZ')