| commit | 4a50053c74ed3a9cfe265762e3dd3d853557736f | [log] [tgz] |
|---|---|---|
| author | Jenkins <jenkins@review.openstack.org> | Mon Sep 25 13:37:32 2017 +0000 |
| committer | Gerrit Code Review <review@openstack.org> | Mon Sep 25 13:37:32 2017 +0000 |
| tree | f1be0271763a15106f678e2afe92b3774953c39c | |
| parent | 2ede133ed766e2b51de04e421183e5e5254537fb [diff] | |
| parent | 7617ac208596665061453dfa04b75e4cc8a76ac9 [diff] |
Merge "Make is_ipv4_address a bit more robust"
diff --git a/functions-common b/functions-common index 1b8ca96..118f62f 100644 --- a/functions-common +++ b/functions-common
@@ -2014,7 +2014,7 @@ # Check if this is a valid ipv4 address string function is_ipv4_address { local address=$1 - local regex='([0-9]{1,3}.){3}[0-9]{1,3}' + local regex='([0-9]{1,3}\.){3}[0-9]{1,3}' # TODO(clarkb) make this more robust if [[ "$address" =~ $regex ]] ; then return 0