File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/restic_compose_backup Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ def run(
1212 volumes : dict = None ,
1313 environment : dict = None ,
1414 labels : dict = None ,
15- network_names : list [str ] = [] ,
15+ network_names : set [str ] = set () ,
1616):
1717 logger .info ("Starting backup container" )
1818 client = utils .docker_client ()
Original file line number Diff line number Diff line change @@ -483,9 +483,9 @@ def containers_for_backup(self) -> list[Container]:
483483 """Obtain all containers with backup enabled"""
484484 return [container for container in self .containers if container .backup_enabled ]
485485
486- def networks_for_backup (self ) -> list [str ]:
486+ def networks_for_backup (self ) -> set [str ]:
487487 """Obtain all networks needed for backup"""
488- return [ container .network_name for container in self .containers_for_backup ()]
488+ return { container .network_name for container in self .containers_for_backup ()}
489489
490490 def generate_backup_mounts (self , dest_prefix = "/volumes" ) -> dict :
491491 """Generate mounts for backup for the entire compose setup"""
You can’t perform that action at this time.
0 commit comments