File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
sdk/keyvault/azure-keyvault-keys Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Release History
2
2
3
- ## 4.5.1 (Unreleased)
4
-
5
- ### Features Added
6
-
7
- ### Breaking Changes
3
+ ## 4.5.1 (2022-04-19)
8
4
9
5
### Bugs Fixed
10
-
11
- ### Other Changes
6
+ - Fixed error that could occur when fetching a key rotation policy that has no defined
7
+ ` lifetime_actions ` .
12
8
13
9
## 4.5.0 (2022-03-28)
14
10
Original file line number Diff line number Diff line change @@ -341,7 +341,11 @@ def __init__(self, **kwargs):
341
341
342
342
@classmethod
343
343
def _from_generated (cls , policy ):
344
- lifetime_actions = [KeyRotationLifetimeAction ._from_generated (action ) for action in policy .lifetime_actions ] # pylint:disable=protected-access
344
+ lifetime_actions = (
345
+ None
346
+ if policy .lifetime_actions is None
347
+ else [KeyRotationLifetimeAction ._from_generated (action ) for action in policy .lifetime_actions ] # pylint:disable=protected-access
348
+ )
345
349
if policy .attributes :
346
350
return cls (
347
351
policy_id = policy .id ,
You can’t perform that action at this time.
0 commit comments