aboutsummaryrefslogtreecommitdiff
path: root/tools/diag
diff options
context:
space:
mode:
authorMichal Nasiadka <mnasiadka@gmail.com>2025-07-10 12:38:18 +0200
committerPierre Riteau <pierre@stackhpc.com>2025-07-21 12:31:40 +0000
commit180721846e02d16fb6d59df1c4f7599cfb16aec6 (patch)
tree3022b32d17f292c58241d82f0365c8b2f9ade1ce /tools/diag
parent07726215dc3734c488cfcc40138740cb0b684d96 (diff)
downloadkolla-ansible-180721846e02d16fb6d59df1c4f7599cfb16aec6.tar.gz
kolla-ansible-180721846e02d16fb6d59df1c4f7599cfb16aec6.zip
Remove egrep usage from scripts
egrep: warning: egrep is obsolescent; using grep -E Change-Id: I4df0d520546da141cafc15e9464149059fdc06a6 Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
Diffstat (limited to 'tools/diag')
-rwxr-xr-xtools/diag4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/diag b/tools/diag
index 157747343..75a49428a 100755
--- a/tools/diag
+++ b/tools/diag
@@ -3,7 +3,7 @@
container_engine="${1:-docker}"
echo "##### System Identification #####"
-egrep -w 'PRETTY_NAME|VERSION_ID' /etc/os-release
+grep -Ew 'PRETTY_NAME|VERSION_ID' /etc/os-release
echo "##### ${container_engine^} Version #####"
$container_engine --version
@@ -18,7 +18,7 @@ echo "##### List installed packages, including editables #####"
pip list
echo "##### Globals.yml file #####"
-egrep -w 'kolla_base_distro|openstack_release' /etc/kolla/globals.yml
+grep -Ew 'kolla_base_distro|openstack_release' /etc/kolla/globals.yml
cat /etc/kolla/globals.yml | grep ^enable_
echo "##### ${container_engine^} Images #####"