From f112cc3a2ec0aa9b39182ca01ab27dc1ae982b99 Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Tue, 17 Feb 2026 12:38:11 +0100 Subject: [PATCH] deboco improvement: added extra check to detect debops env failure - note: work done on 30/01/2026 work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=4312] --- home/bin/deboco | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/home/bin/deboco b/home/bin/deboco index 6a402fb..53742d0 100755 --- a/home/bin/deboco +++ b/home/bin/deboco @@ -188,6 +188,19 @@ controller__check_integrity() # ANSIBLE_CONFIG=~/debops/controllers/alambix/ansible.debops.git/ansible.cfg pushd "$local_repos_path" source "$virtual_env_path/bin/activate" + debops env + if [ $? != 0 ] + then + # Error: No inventory specified in the "ansible.cfg" configuration file. You + # might want to run "debops project refresh" command to ensure that it's + # included in the generated file. If this is a legacy project, check if the + # "inventory" option is present in the ".debops.cfg" file. The default is: + + # [ansible defaults] + # inventory = ansible/inventory + log 'error' "'debops env' failed" + return "$RETURNCODE_ERROR" + fi eval "$(debops env)" local home_dir=$(echo ~) local var_name=''