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]
This commit is contained in:
parent
366b0a327a
commit
f112cc3a2e
|
|
@ -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=''
|
||||
|
|
|
|||
Loading…
Reference in New Issue