Skip to content

Commit

Permalink
Wildcards in User Host
Browse files Browse the repository at this point in the history
This bug-fix, allows wildcards to be used for user host via
providing ability to use '%' and '_'.

Change-Id: Ife752b0efb7ac67754a705b599eb9a68f9978dee
Fixes: bug #1199197
  • Loading branch information
riddhi89 committed Jul 9, 2013
1 parent cc25f9b commit 74eede8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion trove/common/apischema.py
Expand Up @@ -52,6 +52,12 @@
"pattern": "^.*[0-9a-zA-Z]+.*$"
}

host_string = {
"type": "string",
"minLength": 0,
"pattern": "^[%]?[\w(-).]*[%]?$"
}

uuid = {
"type": "string",
"minLength": 1,
Expand Down Expand Up @@ -132,7 +138,7 @@
"properties": {
"name": non_empty_string,
"password": non_empty_string,
"host": non_empty_string,
"host": host_string,
"databases": databases_ref_list
}
}
Expand Down

0 comments on commit 74eede8

Please sign in to comment.