From 0e7169cf1ff627aea1c568dd85a1e7b2cd07f3f0 Mon Sep 17 00:00:00 2001 From: A Holt Date: Fri, 29 Jan 2021 19:03:28 -0500 Subject: [PATCH] Update local_facts.fact --- scripts/local_facts.fact | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/local_facts.fact b/scripts/local_facts.fact index 311a00136..2a6458a35 100755 --- a/scripts/local_facts.fact +++ b/scripts/local_facts.fact @@ -92,9 +92,9 @@ tmp=$(ansible --version) && ANSIBLE_VERSION=$(echo "$tmp" | head -n 1 | cut -f 2 -d " ") -# THESE LAST 3 ARE DIFFEENT as "systemctl is-enabled" unhelpfully returns the -# same rerror code (i.e. 1) REGARDLESS whether service is (A) disabled or -# (B) doesn't exist. SO WE TEST THE STRING OUTPUT INSTEAD OF THE RETURN CODE. +# THE LAST 3 BELOW ARE DIFFERENT as "systemctl is-enabled" unhelpfully returns +# the same error code (i.e. 1) REGARDLESS whether the service is (A) disabled +# or (B) doesn't exist. SO WE TEST THE STRING OUTPUT INSTEAD OF THE RETURN CODE tmp=$(systemctl is-enabled dhcpcd) [[ $tmp != "" ]] &&