Display additional phase detail in summary if present

Some of the phases, for example 'verify', have an additional
component, for example 'pre-upgrade'. Show that detail in the summary
line generated.

Change-Id: Icfc346bfd0aa432a3c01f70bfc98c7e0b6790c88
This commit is contained in:
John L. Villalovos 2016-10-11 10:07:57 -07:00
parent 28423f1884
commit a2a1d60c5f
1 changed files with 5 additions and 1 deletions

View File

@ -100,7 +100,11 @@ function resources {
echo "Skipping resource phase ``$phase`` by configuration"
return
fi
echo_summary "Running resource phase: ``$phase``"
local desc=$phase
if [[ -n $side ]]; then
desc="$phase $side"
fi
echo_summary "Running resource phase: ``$desc``"
local projects=$UPGRADE_PROJECTS
if [[ $phase == "destroy" ]];then