summaryrefslogtreecommitdiff
path: root/openstack.configure
diff options
context:
space:
mode:
Diffstat (limited to 'openstack.configure')
-rw-r--r--openstack.configure6
1 files changed, 4 insertions, 2 deletions
diff --git a/openstack.configure b/openstack.configure
index 49e8cbd8..a8ae5554 100644
--- a/openstack.configure
+++ b/openstack.configure
@@ -28,11 +28,13 @@ set -u
octet='\(\(2[0-5]\?[0-5]\?\)\|\(1[0-9]\?[0-9]\?\)\|\([0-9]\)\)'
valid_ip() {
- echo -n "$1" | grep -xq $octet.$octet.$octet.$octet
+ #echo -n "$1" | grep -xq $octet.$octet.$octet.$octet
+ echo -n "$1" | grep -q $octet.$octet.$octet.$octet
}
valid_hostname() {
- echo -n "$1" | grep -xq '[a-zA-Z0-9.-]\+'
+ #echo -n "$1" | grep -xq '[a-zA-Z0-9.-]\+'
+ echo -n "$1" | grep -q '[a-zA-Z0-9.-]\+'
}
append_host() {