Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix init-sync #789

Merged
merged 2 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading