Skip to content

Commit a0ab28e

Browse files
author
András Váczi
committed
Make target_site really optional
1 parent 7385e4f commit a0ab28e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patroni/dcs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ class Failover(NamedTuple):
464464
leader: Optional[str]
465465
candidate: Optional[str]
466466
scheduled_at: Optional[datetime.datetime]
467-
target_site: Optional[str]
467+
target_site: Optional[str] = None
468468

469469
@staticmethod
470470
def from_node(version: _Version, value: Union[str, Dict[str, str]]) -> 'Failover':

0 commit comments

Comments
 (0)