Skip to content

Commit b76286c

Browse files
authored
Merge pull request #61 from swampdogmash/patch-1
Updated timeout waiting for security update checks
2 parents 3cfca8c + b88fad6 commit b76286c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • agents/plugins

agents/plugins/yum

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ then
9797
fi
9898
UPDATES=$(waitmax 25 /usr/bin/yum -C --noplugins --quiet list updates | grep "\." | cut -d' ' -f1 | wc -l || echo "-1")
9999
# check if --security is available
100-
waitmax 10 /usr/bin/yum -C --noplugins --quiet --security list updates > /dev/null 2>&1
100+
# Updated the timeout for the initial security list validation because it takes longer than 10 seconds on many machines
101+
waitmax 25 /usr/bin/yum -C --noplugins --quiet --security list updates > /dev/null 2>&1
101102
if [ $? -eq 0 ]
102103
then
103104
SECURITY_UPDATES=$(waitmax 25 /usr/bin/yum -C --noplugins --quiet --security list updates | grep "\." | cut -d' ' -f1 | wc -l || echo "-1")

0 commit comments

Comments
 (0)