Skip to content
Permalink
Browse files

Merge pull request #10 from tomochain/feature/9

Ask if volume exists (external)
  • Loading branch information...
etienne-napoleone committed Mar 13, 2019
2 parents 2b5344d + 8512e10 commit 6e930e84783c540f2fab6d2a35544e371c6a0886
Showing with 10 additions and 5 deletions.
  1. +5 −1 create_tomochain_masternode/main.py
  2. +5 −4 create_tomochain_masternode/templates/compose.py
@@ -104,8 +104,12 @@ def ask() -> Dict[str, str]:
exists=True,
file_okay=False,
resolve_path=True,
) if answers["storage"] == 'host directory' else click.STRING
) if answers['storage'] == 'host directory' else click.STRING
)
if answers['storage'] == 'docker volume':
answers['external'] = str(click.confirm(
f'{bullet} The volume already exists',
))
answers['expose_rpc'] = click.confirm(
f'{bullet} Expose RPC',
)
@@ -25,10 +25,11 @@
- 8546:8546
{%- endif %}
restart: always
{% if storage == "docker volume" -%}
{% if storage == "docker volume" %}
volumes:
{{ data }}:
{%- endif %}
{%- if external == "True" %}
external: true
{%- endif %}
{% endif %}
"""

0 comments on commit 6e930e8

Please sign in to comment.
You can’t perform that action at this time.