@@ -1053,7 +1053,7 @@ def parse_scheduled(scheduled: Optional[str]) -> Optional[datetime.datetime]:
10531053@click .argument ('member_names' , nargs = - 1 )
10541054@option_citus_group
10551055@click .option ('--role' , '-r' , help = 'Reload only members with this role' ,
1056- type = role_choice , default = CtlPostgresqlRole .ANY )
1056+ type = role_choice , default = repr ( CtlPostgresqlRole .ANY ) )
10571057@option_force
10581058def reload (cluster_name : str , member_names : List [str ], group : Optional [int ],
10591059 force : bool , role : CtlPostgresqlRole ) -> None :
@@ -1092,7 +1092,7 @@ def reload(cluster_name: str, member_names: List[str], group: Optional[int],
10921092@click .argument ('member_names' , nargs = - 1 )
10931093@option_citus_group
10941094@click .option ('--role' , '-r' , help = 'Restart only members with this role' , type = role_choice ,
1095- default = CtlPostgresqlRole .ANY )
1095+ default = repr ( CtlPostgresqlRole .ANY ) )
10961096@click .option ('--any' , 'p_any' , help = 'Restart a single member only' , is_flag = True )
10971097@click .option ('--scheduled' , help = 'Timestamp of a scheduled restart in unambiguous format (e.g. ISO 8601)' ,
10981098 default = None )
@@ -1924,7 +1924,8 @@ def timestamp(precision: int = 6) -> str:
19241924@option_citus_group
19251925@click .argument ('member_names' , nargs = - 1 )
19261926@click .argument ('target' , type = click .Choice (['restart' , 'switchover' ]))
1927- @click .option ('--role' , '-r' , help = 'Flush only members with this role' , type = role_choice , default = CtlPostgresqlRole .ANY )
1927+ @click .option ('--role' , '-r' , help = 'Flush only members with this role' ,
1928+ type = role_choice , default = repr (CtlPostgresqlRole .ANY ))
19281929@option_force
19291930def flush (cluster_name : str , group : Optional [int ],
19301931 member_names : List [str ], force : bool , role : CtlPostgresqlRole , target : str ) -> None :
0 commit comments