Skip to content

Commit

Permalink
Merge pull request #789 from skalenetwork/fix-sync-init
Browse files Browse the repository at this point in the history
Fix init-sync
  • Loading branch information
badrogger authored Oct 16, 2024
2 parents ccbfa96 + d706021 commit fd57233
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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
2 changes: 1 addition & 1 deletion node_cli/operations/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def init_sync(

schain_name = env['SCHAIN_NAME']
if snapshot_from:
update_node_cli_schain_status(schain_name, {'snapshot_from': snapshot_from})
update_node_cli_schain_status(schain_name, snapshot_from=snapshot_from)

update_images(env.get('CONTAINER_CONFIGS_DIR') != '', sync_node=True)

Expand Down

0 comments on commit fd57233

Please sign in to comment.