From 45efc4afc92f91cf5bcd647b19b6aaffd9ccf6a6 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Mon, 18 Jan 2016 18:29:56 -0500 Subject: [PATCH] You have to use egrep to get real regexes How is this still the case in 2016? Change-Id: I3de8832bb1b86fd822f10ce35b695f10f4f8a652 --- modules/openstack_project/files/puppetmaster/expand-groups.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openstack_project/files/puppetmaster/expand-groups.sh b/modules/openstack_project/files/puppetmaster/expand-groups.sh index fb15ea61bb..b235c3b344 100644 --- a/modules/openstack_project/files/puppetmaster/expand-groups.sh +++ b/modules/openstack_project/files/puppetmaster/expand-groups.sh @@ -25,7 +25,7 @@ for line in $(> $outfile - ansible "~${pattern}" --list-hosts | grep -v '^ +hosts \([0-9]+\):' >> $outfile + ansible "~${pattern}" --list-hosts | egrep -v '^ +hosts \([0-9]+\):' >> $outfile done cp $outfile /etc/ansible/hosts/generated-groups