|
@ -2398,8 +2398,8 @@ export -f get_compose_relations |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_all_services() { |
|
|
get_all_services() { |
|
|
local cache_file="$state_tmpdir/$FUNCNAME.cache.$(H "$GLOBAL_ALL_RELATIONS_HASH")" \ |
|
|
|
|
|
s rn ts rc td services |
|
|
|
|
|
|
|
|
local cache_file="$state_tmpdir/$FUNCNAME.cache.$GLOBAL_ALL_RELATIONS_HASH" \ |
|
|
|
|
|
s rn ts rc td services service |
|
|
if [ -e "$cache_file" ]; then |
|
|
if [ -e "$cache_file" ]; then |
|
|
#debug "$FUNCNAME: SESSION cache hit $1" |
|
|
#debug "$FUNCNAME: SESSION cache hit $1" |
|
|
cat "$cache_file" |
|
|
cat "$cache_file" |
|
@ -2418,7 +2418,7 @@ get_all_services() { |
|
|
services["$service"]=1 |
|
|
services["$service"]=1 |
|
|
echo "$service" |
|
|
echo "$service" |
|
|
done |
|
|
done |
|
|
done < <(cat "$GLOBAL_ALL_RELATIONS") > "$cache_file" |
|
|
|
|
|
|
|
|
done < "$GLOBAL_ALL_RELATIONS" > "$cache_file" |
|
|
|
|
|
|
|
|
cat "$cache_file" |
|
|
cat "$cache_file" |
|
|
} |
|
|
} |
|
|