summaryrefslogtreecommitdiff
path: root/openstack.configure
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-04 15:36:11 +0000
commit0938fd0d7699526909b2b1316be34ec34a402e1e (patch)
tree84eaee612d5eb47d86aed4052527d94d1e001e1e /openstack.configure
parente0bc7437e06b1dfb6fc482fd573db56b7374fd72 (diff)
downloaddefinitions-0938fd0d7699526909b2b1316be34ec34a402e1e.tar.gz
quote in err msg
Diffstat (limited to 'openstack.configure')
-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
}