Update execute_shipyard_action Script

The CI/CD team has pointed out that they are experiencing
problems in the pipeline while running the script as the
wrong position was queried for the action_lifecycle.

This has happened due to recent updates to the Shipyard API/CLI.

This p.s. will update the script, i.e. change from position
29 to 8.

Change-Id: Icd30fb43791e071207220f150886ae6201ed9e02
This commit is contained in:
Anthony Lin 2018-04-26 15:48:57 +00:00
parent 08e0f2987c
commit b944ba666f
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ run_action () {
do
# Get Current State of Action Lifecycle
describe_action=`${base_docker_command} ${SHIPYARD_IMAGE} describe ${action_id}`
action_lifecycle=`echo ${describe_action} | awk '{print $29}'`
action_lifecycle=`echo ${describe_action} | awk '{print $8}'`
if [[ $action_lifecycle == "Complete" ]]; then
echo -e '\nSuccessfully performed' ${action}