Browse Source

tools: fix execute_shipyard_action if condition

Before if condition was looking for non-existence of ${server}. `server`
is never defined, so this condition is always true.

Now if condition is looking for existence of ${servers}, which is
sometimes defined.

Change-Id: I31cd4a2765705176a9d5239a01b04ff341b36540
changes/17/638717/4
Dustin Specker 3 months ago
parent
commit
f4f57a1bbf
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tools/execute_shipyard_action.sh

+ 1
- 1
tools/execute_shipyard_action.sh View File

@@ -50,7 +50,7 @@ run_action () {
50 50
     # Note that deploy and update site do not require additional parameter
51 51
     # to be passed in while redeploy_server requires user to indicate which
52 52
     # servers to redeploy
53
-    if ! [[ ${server} ]] && [[ ${action} ]]; then
53
+    if ! [[ ${servers} ]] && [[ ${action} ]]; then
54 54
         ${base_docker_command} ${SHIPYARD_IMAGE} create action ${action}
55 55
     elif [[ ${action} == 'redeploy_server' && ${servers} ]]; then
56 56
         ${base_docker_command} ${SHIPYARD_IMAGE} create action redeploy_server --param="target_nodes=${servers}"

Loading…
Cancel
Save