]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
fix unless_cmd
authorVadim Chernyshev <tryfunc@gmail.com>
Thu, 19 Mar 2020 13:32:46 +0000 (16:32 +0300)
committerVadim Chernyshev <tryfunc@gmail.com>
Thu, 19 Mar 2020 13:34:54 +0000 (16:34 +0300)
apt-mark supports the following syntax:

 * showauto
 * showmanual
 * showhold

Signed-off-by: Vadim Chernyshev <tryfunc@gmail.com>
manifests/mark.pp

index e43916204b901c5f2823192d5b48e951c454988c..d83a02c44d98f36892870c8b90e9d7f4092dba3d 100644 (file)
@@ -13,7 +13,7 @@ define apt::mark (
       $unless_cmd = undef
     }
     default: {
-      $unless_cmd = "/usr/bin/apt-mark showm${setting} ${title} | /bin/fgrep -qs ${title}"
+      $unless_cmd = "/usr/bin/apt-mark show${setting} ${title} | /bin/fgrep -qs ${title}"
     }
   }
   exec { "/usr/bin/apt-mark ${setting} ${title}":