diff --git a/node_cli/cli/schains.py b/node_cli/cli/schains.py index 06e289a6..c6ef4486 100644 --- a/node_cli/cli/schains.py +++ b/node_cli/cli/schains.py @@ -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, @@ -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' diff --git a/node_cli/cli/sync_node.py b/node_cli/cli/sync_node.py index 304a20d5..45623635 100644 --- a/node_cli/cli/sync_node.py +++ b/node_cli/cli/sync_node.py @@ -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 @@ -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' @@ -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'