From 017990467588ec81732d57c10607ed5403e1a986 Mon Sep 17 00:00:00 2001 From: Daniel Heule Date: Tue, 22 Mar 2016 11:01:19 +0100 Subject: [PATCH] bugfix for newer zypper (SLES12SP1) releases, different column numbers in output --- cdist/conf/type/__zypper_service/explorer/service_uri | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdist/conf/type/__zypper_service/explorer/service_uri b/cdist/conf/type/__zypper_service/explorer/service_uri index bcad4ec8..d57d2aa8 100644 --- a/cdist/conf/type/__zypper_service/explorer/service_uri +++ b/cdist/conf/type/__zypper_service/explorer/service_uri @@ -27,4 +27,4 @@ else fi # simpler command which works only on SLES11 SP3 or newer: # echo $(zypper ls -u -E | grep -E "\<$uri\>" | cut -d'|' -f 7) -echo $(zypper ls -u | grep -E '^([^|]+\|){3,3} Yes' | grep -E "\<$uri\>" | cut -d'|' -f 7 ) +echo $(zypper ls -u | grep -E '^([^|]+\|){3,3} Yes' | grep -E "\<$uri\>" | awk '{print $NF}')