[BUG] btp setup automator script is not interactive therefore login not possible
laRose00 opened this issue · 1 comments
Is there an existing issue for this?
- I have searched the existing issues
Are you using the latest docker image for BTPSA?
- I'm using the latest docker image for BTPSA.
Which area is mainly impacted
Documentation
Current Behavior
While running the btp setup automator script I'm asked do a cf login but the script doesn't stop to let me input my credentials. Instead it just keeps going and then throws an error that I'm not logged in.
Expected Behavior
The script should stop and let me put in my credentials.
Steps To Reproduce
start the btp-setup-automator script (https://github.com/SAP-samples/btp-setup-automator/blob/main/docs/README.md#scripting-btp-setup-automator) - I'm using sso
Logs and configuration files available?
run the btp setup automator script
Anything else?
I fixed the issue by adding an "-i" in the command to make it interactive:
docker exec -i --workdir "/home/user" "test01" ./btpsa \
I also had to add an "./" before the btpsa, otherwise it would not work.
Thanks for raising the issue. The documentation is adjusted (see PR #382)
The fix is available in the dev branch and will be available in main with the next release