Change 'pkg.installed' call to 'pkg.latest'

Changed due to 'pkg.installed' ignore 'version: latest'

PROD-37043

Change-Id: I4cb59d174778e3ea56973e1ffd0b52c813fbf584
diff --git a/galera/upgrade/update_master.sls b/galera/upgrade/update_master.sls
index 930bf90..1ffdac6 100644
--- a/galera/upgrade/update_master.sls
+++ b/galera/upgrade/update_master.sls
@@ -17,9 +17,8 @@
     - percona-xtrabackup-24
 
 galera_packages:
-  pkg.installed:
-    - version: latest
-    - pkgs: {{ galera.pkgs }}
+  pkg.latest:
+  - names: {{ galera.pkgs }}
 
 mysql_service_stopped:
   service.dead:
diff --git a/galera/upgrade/update_slave.sls b/galera/upgrade/update_slave.sls
index 8ed886e..505f9b4 100644
--- a/galera/upgrade/update_slave.sls
+++ b/galera/upgrade/update_slave.sls
@@ -13,6 +13,5 @@
     - percona-xtrabackup-24
 
 galera_packages:
-  pkg.installed:
-    - version: latest
-    - pkgs: {{ galera.pkgs }}
+  pkg.latest:
+  - names: {{ galera.pkgs }}