Skip to content

Commit

Permalink
Merge "Make flavor-list regexp more robust"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Jan 29, 2013
2 parents f09858e + 64dedf4 commit 2ed70d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/nova_create_flavors.sh
Expand Up @@ -75,7 +75,7 @@ fi
# flavors we're about to create, and no others
FLAVORS="t1\.micro|m1\.tiny|m1\.small|m1\.medium|m1\.large|m1\.xlarge|m2\.xlarge|m2\.2xlarge|m2\.4xlarge|c1\.medium|c1\.xlarge|cc1\.4xlarge"

for f in $(nova flavor-list | grep -E "^\| [0-9]+\s+ \| ($FLAVORS)\s" | awk '{print $2}')
for f in $(nova flavor-list | grep -E "^\|\s+[0-9]+\s+\|\s+($FLAVORS)\s" | awk '{print $2}')
do
retry_cmd "nova flavor-delete $f"
done
Expand Down

0 comments on commit 2ed70d7

Please sign in to comment.