commit | 824b52e2fdc4d8d50995a5e4380d4f76417a4845 | [log] [tgz] |
---|---|---|
author | Mykyta Karpin <mkarpin@mirantis.com> | Tue Apr 16 12:26:00 2019 +0300 |
committer | Mykyta Karpin <mkarpin@mirantis.com> | Tue Apr 16 12:28:24 2019 +0300 |
tree | 8e74df7117cb5e6c667ce5273d1fd3065aba05b6 | |
parent | d08bbcfe9fa6168b48e37714a3505e50b028e99f [diff] |
Update apt cache when updating packages In order to get new packages available for installation apt cache should be updated. Change-Id: I38e07586ab3d30c2689c91a65f1ffda47d5cffaf Related-Prod: https://mirantis.jira.com/browse/PROD-29519
diff --git a/component-maintenance-update.groovy b/component-maintenance-update.groovy index 1b7264d..5cd7fec 100644 --- a/component-maintenance-update.groovy +++ b/component-maintenance-update.groovy
@@ -42,6 +42,8 @@ */ def installPkgUpdate(saltMaster, target, pkgs) { + common.infoMsg("Updating apt cache on ${target}") + runShCommand(saltMaster, target, 'apt update') common.infoMsg("Installing ${pkgs} updates on ${target}") runShCommand(saltMaster, target, "apt install --only-upgrade ${pkgs.join(' ')} -y") }