Prefix should not be required for S3 lifecycle config. Closes #930.
This commit is contained in:
parent
956f44d46c
commit
2adc5f2ace
1 changed files with 1 additions and 1 deletions
|
|
@ -281,7 +281,7 @@ class FakeBucket(BaseModel):
|
||||||
transition = rule.get('Transition')
|
transition = rule.get('Transition')
|
||||||
self.rules.append(LifecycleRule(
|
self.rules.append(LifecycleRule(
|
||||||
id=rule.get('ID'),
|
id=rule.get('ID'),
|
||||||
prefix=rule['Prefix'],
|
prefix=rule.get('Prefix'),
|
||||||
status=rule['Status'],
|
status=rule['Status'],
|
||||||
expiration_days=expiration.get('Days') if expiration else None,
|
expiration_days=expiration.get('Days') if expiration else None,
|
||||||
expiration_date=expiration.get('Date') if expiration else None,
|
expiration_date=expiration.get('Date') if expiration else None,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue