Skip to content

Commit

Permalink
Fix flake errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvoncek committed Apr 23, 2024
1 parent 56b1d07 commit e40e32d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 8 additions & 4 deletions medusa/medusacli.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ def fetch_tokenmap(medusaconfig, backup_name, bucket_name, prefix):

@cli.command(name='list-backups')
@click.option('--show-all/--no-show-all', default=False, help="List all backups in the bucket")
@click.option('--bucket-name', help='Explicit bucket name to over-ride the one from config', required=False, default=None)
@click.option('--bucket-name',
help='Explicit bucket name to over-ride the one from config', required=False, default=None)
@click.option('--prefix', help='Path prefix in multi-tenant buckets', required=False, default=None)
@pass_MedusaConfig
def list_backups(medusaconfig, show_all, bucket_name, prefix):
Expand All @@ -198,7 +199,8 @@ def list_backups(medusaconfig, show_all, bucket_name, prefix):
multiple=True, default={})
@click.option('--ignore-system-keyspaces', help='Do not download cassandra system keyspaces', required=True,
is_flag=True, default=False)
@click.option('--bucket-name', help='Explicit bucket name to over-ride the one from config', required=False, default=None)
@click.option('--bucket-name',
help='Explicit bucket name to over-ride the one from config', required=False, default=None)
@click.option('--prefix', help='Path prefix in multi-tenant buckets', required=False, default=None)
@pass_MedusaConfig
def download(medusaconfig, backup_name, download_destination, keyspaces, tables, ignore_system_keyspaces, bucket_name,
Expand Down Expand Up @@ -231,7 +233,8 @@ def download(medusaconfig, backup_name, download_destination, keyspaces, tables,
@click.option('--version-target', help='Target Cassandra version', required=False, default="3.11.9")
@click.option('--ignore-racks', help='Disable matching nodes based on rack topology', required=False, default=False,
is_flag=True)
@click.option('--bucket-name', help='Explicit bucket name to over-ride the one from config', required=False, default=None)
@click.option('--bucket-name',
help='Explicit bucket name to over-ride the one from config', required=False, default=None)
@click.option('--prefix', help='Path prefix in multi-tenant buckets', required=False, default=None)
@pass_MedusaConfig
def restore_cluster(medusaconfig, backup_name, seed_target, temp_dir, host_list, keep_auth, bypass_checks,
Expand Down Expand Up @@ -276,7 +279,8 @@ def restore_cluster(medusaconfig, backup_name, seed_target, temp_dir, host_list,
@click.option('--use-sstableloader', help='Use the sstableloader to load the backup into the cluster',
default=False, is_flag=True)
@click.option('--version-target', help='Target Cassandra version', required=False, default="3.11.9")
@click.option('--bucket-name', help='Explicit bucket name to over-ride the one from config', required=False, default=None)
@click.option('--bucket-name',
help='Explicit bucket name to over-ride the one from config', required=False, default=None)
@click.option('--prefix', help='Path prefix in multi-tenant buckets', required=False, default=None)
@pass_MedusaConfig
def restore_node(medusaconfig, temp_dir, backup_name, in_place, keep_auth, seeds, verify, keyspaces, tables,
Expand Down
6 changes: 1 addition & 5 deletions medusa/storage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,14 @@

import medusa.index

from medusa.storage.cluster_backup import ClusterBackup
from medusa.storage.node_backup import NodeBackup
from medusa.storage.abstract_storage import ManifestObject, AbstractBlob
from medusa.storage.azure_storage import AzureStorage
from medusa.storage.cluster_backup import ClusterBackup
from medusa.storage.google_storage import GoogleStorage
from medusa.storage.local_storage import LocalStorage
from medusa.storage.node_backup import NodeBackup
from medusa.storage.s3_base_storage import S3BaseStorage

from medusa.storage.s3_rgw import S3RGWStorage
from medusa.storage.s3_storage import S3Storage
from medusa.storage.s3_storage import S3BaseStorage, S3Storage
from medusa.utils import evaluate_boolean

# pattern meant to match just the blob name, not the entire path
Expand Down

0 comments on commit e40e32d

Please sign in to comment.