Merge "Fix tr syntax in 51-hosts"

This commit is contained in:
Jenkins 2016-11-23 14:56:42 +00:00 committed by Gerrit Code Review
commit 86dfef1360
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ write_entries() {
ENTRIES=$(os-apply-config --key hosts --type raw --key-default '' | tr '[A-Z]' '[a-z]')
if [ ! -z "$ENTRIES" ]; then
# cloud-init files are /etc/cloud/templates/hosts.OSNAME.tmpl
DIST=$(lsb_release -is | tr -s [A-Z] [a-z])
DIST=$(lsb_release -is | tr -s '[A-Z]' '[a-z]')
case $DIST in
fedora|redhatenterpriseserver)
name="redhat"