ocpidev build applications falls back to bash
Summary
ocpidev build applications
should run using the python code in application.py
and only fall back to the bash code if some error occurs. Instead the command always falls back to bash without giving any error indication.
Steps to reproduce
- Add a print statement (eg Flag1) to the function
def build
in theApplicationsCollection
class ofapplication.py
- Add a different print statement (eg Flag2) to the function
do_applications
inocpidev.sh
- Add a third print statement (eg Flag3) to the function
do_build_here
inocpidev.sh
- Run the command
ocpidev build applications
in a project dir: You will seeFlag2
- Run the command
ocpidev build
in an applications dir: You will seeFlag3
Context
I was working an issue that would add a flag, to the python code, of build applications, and my changes had no effect.
Expected correct behavior
Running the above test again should result in Flag1
being printed both times.
Possible fixes
Use a debugger to track down the error that is causing the python code to fall back to bash.
Acceptance criteria
Using ocpidev build
for applications should use the python code.