Skip to content

Commit 56ec13c

Browse files
committed
Fix destination_ips where not correctly added to response when empty
Signed-off-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
1 parent cea6125 commit 56ec13c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hcloud/firewalls/domain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ def __init__(
8787
protocol, # type: str
8888
source_ips, # type: List[str]
8989
port=None, # type: Optional[str]
90-
destination_ips=[], # type: Optional[List[str]]
90+
destination_ips=None, # type: Optional[List[str]]
9191
):
9292
self.direction = direction
9393
self.port = port
9494
self.protocol = protocol
9595
self.source_ips = source_ips
96-
self.destination_ips = destination_ips
96+
self.destination_ips = destination_ips or []
9797

9898
def to_payload(self):
9999
payload = {

0 commit comments

Comments
 (0)