From 91934b51d9b83a4b169c75a5aa487a399f9fc081 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Fri, 25 Jan 2019 15:06:31 +0100 Subject: [PATCH] fix: ``default-options`` in charms was not read as expected --- bin/compose-core | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/compose-core b/bin/compose-core index 9e7f635..72fc12c 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -1153,6 +1153,7 @@ get_compose_service_def () { docker_compose=$(get_compose_yml_content) || return 1 result=$(_get_compose_service_def_cached "$service" "$docker_compose") || return 1 charm=$(echo "$result" |shyaml get-value charm 2>/dev/null) || return 1 + metadata=$(charm.metadata "$charm") || return 1 if default_options=$(printf "%s" "$metadata" | shyaml -y -q get-value default-options); then default_options=$(yaml_key_val_str "options" "$default_options") || return 1 result=$(merge_yaml_str "$default_options" "$result") || return 1