This is an automated email from the ASF dual-hosted git repository.
msciabarra pushed a commit to branch devel
in repository https://gitbox.apache.org/repos/asf/openserverless-task.git
The following commit(s) were added to refs/heads/devel by this push:
new c811d89 fix ops ide login
c811d89 is described below
commit c811d897339251bd1c8e2cc826a59fd19f06a28d
Author: Michele Sciabarra <[email protected]>
AuthorDate: Sun Nov 30 11:00:25 2025 +0000
fix ops ide login
---
ide/opsfile.yml | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
diff --git a/ide/opsfile.yml b/ide/opsfile.yml
index 815e322..4078769 100644
--- a/ide/opsfile.yml
+++ b/ide/opsfile.yml
@@ -141,15 +141,19 @@ tasks:
login:
- silent: true
+ silent: false
desc: login in you OpenServerless host
cmds:
- |
+ set -a
if test -e "$OPS_PWD/.env"
then source "$OPS_PWD/.env"
fi
+ if test -n "$OPS_USERNAME"
+ then echo "Please use OPS_USER, OPS_USERNAME is deprecated"
+ fi
if test -n "{{._apihost_}}"
- then OPSDEV_APIHOST="{{._apihost_}}"
+ then export OPSDEV_APIHOST="{{._apihost_}}"
fi
echo "*** Configuring Access to OpenServerless ***"
if test -z "{{._apihost_}}"
@@ -158,23 +162,23 @@ tasks:
then
echo -n "Enter Apihost: "
read OPSDEV_APIHOST
- OPSDEV_APIHOST="$(echo $OPSDEV_APIHOST | tr -d '\r')"
+ export OPSDEV_APIHOST="$(echo $OPSDEV_APIHOST | tr -d '\r')"
else
- OPSDEV_APIHOST="$OPS_APIHOST"
+ export OPSDEV_APIHOST="$OPS_APIHOST"
fi
- else OPSDEV_APIHOST="{{._apihost_}}"
+ else export OPSDEV_APIHOST="{{._apihost_}}"
fi
if test -z "{{._username_}}"
then
- if test -n "$OPS_USERNAME"
+ if test -n "$OPS_USER"
then
- OPSDEV_USERNAME="$OPS_USERNAME"
+ export OPSDEV_USERNAME="$OPS_USER"
else
echo -n "Enter Username: "
read OPSDEV_USERNAME
- OPSDEV_USERNAME="$(echo $OPSDEV_USERNAME | tr -d '\r')"
+ export OPSDEV_USERNAME="$(echo $OPSDEV_USERNAME | tr -d '\r')"
fi
- else OPSDEV_USERNAME="{{._username_}}"
+ else export OPSDEV_USERNAME="{{._username_}}"
fi
echo "Logging user $OPSDEV_USERNAME in $OPSDEV_APIHOST"
if test -n "$OPS_PASSWORD"
@@ -188,8 +192,6 @@ tasks:
config OPSDEV_USERNAME="$OPSDEV_USERNAME"
config
OPSDEV_HOST="$OPSDEV_HOST_PROT://$OPSDEV_USERNAME.$OPSDEV_HOST_URL"
source ~/.wskprops
- else
- false
fi