summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2015-03-02 19:25:55 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2015-03-02 19:25:55 +0000
commit5f5bf4e5600299ccc3042e0d19fb263ea24bbd1f (patch)
tree3511a9c8d1897c931a554b91c2d5abaa39019a22
parent53c6009a4f36780b5501ef68de310247b1d56dca (diff)
downloaddefinitions-5f5bf4e5600299ccc3042e0d19fb263ea24bbd1f.tar.gz
quote in err msg
-rw-r--r--openstack.configure4
1 files changed, 2 insertions, 2 deletions
diff --git a/openstack.configure b/openstack.configure
index b50d2946..49e8cbd8 100644
--- a/openstack.configure
+++ b/openstack.configure
@@ -41,8 +41,8 @@ append_host() {
ip="$1"
hostname="$2"
- if ! valid_ip "$ip"; then echo "ip, $ip" is malformed >&2; exit 1; fi
- if ! valid_hostname "$hostname"; then echo "hostname, $hostname" is malformed >&2; exit 1; fi
+ if ! valid_ip "$ip"; then echo "ip, '$ip'" is malformed >&2; exit 1; fi
+ if ! valid_hostname "$hostname"; then echo "hostname, '$hostname'" is malformed >&2; exit 1; fi
echo "$ip" "$hostname" >> /etc/hosts
}