forked from ungleich-public/cdist
Merge pull request #419 from dheule/bugfix__zypper_service
bugfix for newer zypper (SLES12SP1) releases
This commit is contained in:
commit
4233a0913a
1 changed files with 1 additions and 3 deletions
|
@ -25,6 +25,4 @@ if [ -f "$__object/parameter/uri" ]; then
|
|||
else
|
||||
uri="/$__object_id"
|
||||
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 | awk 'BEGIN { FS = "[ ]+\\|[ ]+" } ; $4 == "Yes" && $NF == "'$uri'" {print $NF}')
|
||||
|
|
Loading…
Reference in a new issue