diff --git a/ros2ai/verb/status.py b/ros2ai/verb/status.py index 3385a3b..a4b90ef 100644 --- a/ros2ai/verb/status.py +++ b/ros2ai/verb/status.py @@ -45,8 +45,9 @@ def main(self, *, args): # try to call OpenAI API with user configured setting is_valid = openai_config.is_api_key_valid() - if is_valid and args.verbose: - print("[SUCCESS] Valid OpenAI API key.") + if is_valid: + if args.verbose: + print("[SUCCESS] Valid OpenAI API key.") else: print("[FAILURE] Invalid OpenAI API key.") return 1 @@ -58,8 +59,9 @@ def main(self, *, args): headers ) - if can_get_models and args.verbose: - print("[SUCCESS] Retrieved list of models.") + if can_get_models: + if args.verbose: + print("[SUCCESS] Retrieved list of models.") else: print("[FAILURE] Could not retrieved list of models.") return 1 diff --git a/scripts/verification.sh b/scripts/verification.sh index 9620ffe..67603e1 100755 --- a/scripts/verification.sh +++ b/scripts/verification.sh @@ -62,7 +62,7 @@ function verify_ros2ai() { echo "[${FUNCNAME[0]}]: verifying ros2ai." # execute all commands in the list for command in "${command_list[@]}"; do - #echo "----- $command" + echo "----- $command" eval $command done echo "----- all ros2ai commands return successfully!!! -----"