Perpatch: Fix bash ansible calls 38/25238/1
authorVratko Polak <vrpolak@cisco.com>
Tue, 18 Feb 2020 13:18:39 +0000 (14:18 +0100)
committerVratko Polak <vrpolak@cisco.com>
Tue, 18 Feb 2020 13:18:39 +0000 (14:18 +0100)
The function ansible_hosts got renamed to ansible_playbook
in https://gerrit.fd.io/r/c/csit/+/24511

Change-Id: Ife4e7b13f634fcdda95f80c18bc86cfded139b5d
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
resources/libraries/bash/entry/per_patch_perf.sh

index 95b067b..deae8b0 100644 (file)
@@ -68,7 +68,7 @@ for ((iter=0; iter<iterations; iter++)); do
     if ((iter)); then
         # Function reserve_and_cleanup_testbed has already cleaned it once,
         # but we need to clean it explicitly on subsequent iterations.
-        ansible_hosts "cleanup" || die
+        ansible_playbook "cleanup" || die
     fi
     # Testing current first. Good for early failures or for API changes.
     select_build "build_current" || die
@@ -78,7 +78,7 @@ for ((iter=0; iter<iterations; iter++)); do
     archive_parse_test_results "csit_current/${iter}" || die
     die_on_pybot_error || die
     # TODO: Use less heavy way to avoid apt remove failures.
-    ansible_hosts "cleanup" || die
+    ansible_playbook "cleanup" || die
     select_build "build_parent" || die
     check_download_dir || die
     run_pybot || die