Skip to content

Commit

Permalink
Switch to URL_TYPE for --snapshot-from
Browse files Browse the repository at this point in the history
  • Loading branch information
badrogger committed Oct 16, 2024
1 parent 22d6702 commit d706021
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions node_cli/cli/schains.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import click

from node_cli.utils.helper import abort_if_false, IP_TYPE
from node_cli.utils.helper import abort_if_false, URL_TYPE
from node_cli.core.schains import (
describe,
get_schain_firewall_rules,
Expand Down Expand Up @@ -87,7 +87,7 @@ def show_rules(schain_name: str) -> None:
prompt='Are you sure? Repair mode may corrupt working SKALE chain data.')
@click.option(
'--snapshot-from',
type=IP_TYPE,
type=URL_TYPE,
default=None,
hidden=True,
help='Ip of the node from to download snapshot from'
Expand Down
6 changes: 3 additions & 3 deletions node_cli/cli/sync_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
from node_cli.utils.helper import (
abort_if_false,
error_exit,
IP_TYPE,
safe_load_texts,
streamed_cmd,
URL_TYPE
)
from node_cli.utils.exit_codes import CLIExitCodes

Expand Down Expand Up @@ -65,7 +65,7 @@ def sync_node():
)
@click.option(
'--snapshot-from',
type=IP_TYPE,
type=URL_TYPE,
default=None,
hidden=True,
help='Ip of the node from to download snapshot from'
Expand Down Expand Up @@ -118,7 +118,7 @@ def _update_sync(env_file, unsafe_ok):
)
@click.option(
'--snapshot-from',
type=IP_TYPE,
type=URL_TYPE,
default=None,
hidden=True,
help='Ip of the node from to download snapshot from'
Expand Down

0 comments on commit d706021

Please sign in to comment.