Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
Merge 1a5c9f1 into 13f5dfd
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego committed Sep 5, 2018
2 parents 13f5dfd + 1a5c9f1 commit 1d85bb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/gettingstarted.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Are you looking at installing and deploying REANA cluster locally on your laptop
$ reana-cluster env
export REANA_SERVER_URL=http://192.168.99.100:32732
$ eval $(reana-cluster env --all)
$ eval $(reana-cluster env)
7. You can now run REANA examples on the locally-deployed cluster using
`reana-client <https://reana-client.readthedocs.io/>`_.
Expand Down
6 changes: 3 additions & 3 deletions reana_cluster/cli/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ def get(ctx, component, namespace):
default='default',
help='Namespace of the components which configuration should be produced.')
@click.option(
'--all', 'all_',
'--incude-admin-token',
is_flag=True,
help='Additional environment variables, such as REANA_ACCESS_TOKEN, will '
'be set.')
@click.pass_context
def env(ctx, namespace, all_):
def env(ctx, namespace, incude_admin_token):
"""Produce shell exportable list of REANA components' urls."""
try:
export_lines = []
Expand All @@ -102,7 +102,7 @@ def env(ctx, namespace, all_):
port=component_info['ports'][0]),
))

if all_:
if incude_admin_token:
get_admin_token_sql_query_cmd = [
'psql', '-U', 'reana', 'reana', '-c',
'SELECT access_token FROM user_']
Expand Down

0 comments on commit 1d85bb8

Please sign in to comment.