Remove whitespace and bogus comments
This commit is contained in:
parent
e6e7eb7502
commit
bd5f75b728
@ -42,6 +42,7 @@ class SetupPhase(Enum):
|
|||||||
def _config_toml_path(network_dir: Path):
|
def _config_toml_path(network_dir: Path):
|
||||||
return network_dir.joinpath("config","client.toml")
|
return network_dir.joinpath("config","client.toml")
|
||||||
|
|
||||||
|
|
||||||
def _get_chain_id_from_config(network_dir: Path):
|
def _get_chain_id_from_config(network_dir: Path):
|
||||||
chain_id = None
|
chain_id = None
|
||||||
with open(_config_toml_path(network_dir), "rb") as f:
|
with open(_config_toml_path(network_dir), "rb") as f:
|
||||||
@ -108,7 +109,6 @@ def setup(command_context: DeployCommandContext, parameters: LaconicStackSetupCo
|
|||||||
print(f"Command output: {output}")
|
print(f"Command output: {output}")
|
||||||
|
|
||||||
elif phase == SetupPhase.JOIN:
|
elif phase == SetupPhase.JOIN:
|
||||||
# We want to create the directory so if it exists that's an error
|
|
||||||
if not os.path.exists(network_dir):
|
if not os.path.exists(network_dir):
|
||||||
print(f"Error: network directory {network_dir} doesn't exist")
|
print(f"Error: network directory {network_dir} doesn't exist")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
@ -130,9 +130,14 @@ def setup(command_context: DeployCommandContext, parameters: LaconicStackSetupCo
|
|||||||
f"laconicd gentx {parameters.key_name} 90000000000achk --home {laconicd_home_path_in_container} --chain-id {chain_id} --keyring-backend test",
|
f"laconicd gentx {parameters.key_name} 90000000000achk --home {laconicd_home_path_in_container} --chain-id {chain_id} --keyring-backend test",
|
||||||
mounts)
|
mounts)
|
||||||
print(f"Command output: {output3}")
|
print(f"Command output: {output3}")
|
||||||
|
output4, status4 = run_container_command(
|
||||||
|
command_context,
|
||||||
|
"laconicd",
|
||||||
|
f"laconicd keys show {parameters.key_name} -a --home {laconicd_home_path_in_container} --keyring-backend test",
|
||||||
|
mounts)
|
||||||
|
print(f"Command output: {output4}")
|
||||||
|
|
||||||
elif phase == SetupPhase.CREATE:
|
elif phase == SetupPhase.CREATE:
|
||||||
# We want to create the directory so if it exists that's an error
|
|
||||||
if not os.path.exists(network_dir):
|
if not os.path.exists(network_dir):
|
||||||
print(f"Error: network directory {network_dir} doesn't exist")
|
print(f"Error: network directory {network_dir} doesn't exist")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user