diff --git a/news_to_ismas b/news_to_ismas index 3f943bc..2bbb9ad 100755 --- a/news_to_ismas +++ b/news_to_ismas @@ -2,7 +2,8 @@ source ./log_helpers -if [ ${news_to_ismas_sourced:-1} = "1" ]; then # include only once +if [ "${news_to_ismas_sourced:-1}" = "1" ]; then # include only once + readonly news_to_ismas_sourced=${BASH_SOURCE[0]} readonly APISM_DB_PORT=7777 readonly UPDATE_ISMAS_PROGRESS="U0010" @@ -69,6 +70,18 @@ if [ ${news_to_ismas_sourced:-1} = "1" ]; then # include only once ########################################################################### ########################################################################### + + update_psa_clone_customer_repository () { + PERCENT=10 + local params=("U0010" # event + $PERCENT # percent + $RC_SUCCESS # resultcode + "clone_customer_repository" # step + "git cloned $CUSTOMER_REPOSITORY_PATH" # step_result + "") # version + news_to_ismas ${params[*]} + return $? + } update_psa_pull_customer_repository () { PERCENT=10 @@ -382,8 +395,8 @@ if [ ${news_to_ismas_sourced:-1} = "1" ]; then # include only once \"CREATED\":\"$(date +%Y-%m-%dT%T)\", \"HASH\":\"$(compute_hash)\" }, - \"TARIFF\": { - $(<$TC_PSA_TC_FILE) + \"TARIFF\" : { + $(<$TC_PSA_TC_FILE) }, \"HARDWARE\" : { \"DEVICES\" : [