Skip to content

Commit b181ffa

Browse files
fix test
1 parent 8469467 commit b181ffa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

linode_api4/objects/linode.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import copy
12
import string
23
import sys
34
from dataclasses import dataclass, field
@@ -1971,6 +1972,10 @@ def upgrade_interfaces(
19711972
data=_flatten_request_body_recursive(drop_null_keys(params)),
19721973
)
19731974

1975+
# This resolves an edge case where `result["interfaces"]` persists across
1976+
# multiple calls, which can cause parsing errors when expanding them below.
1977+
result = copy.deepcopy(result)
1978+
19741979
self.invalidate()
19751980

19761981
# We don't convert interface dicts to LinodeInterface objects on dry runs

0 commit comments

Comments
 (0)