Skip to content

Commit

Permalink
Fix regex for validating "remotehost" parameter
Browse files Browse the repository at this point in the history
Change-Id: I35311e790ec19d95059a0b8eed0e5ac885c12ca6
  • Loading branch information
Bischoff committed Nov 20, 2023
1 parent 9887dd9 commit e45fa73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zvmsdk/sdkwsgi/validation/parameter_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ def valid_char(char):

remotehost = {
'type': ['string'],
'pattern': '^[a-zA-Z0-9\-]+\@([0-9]{1,3}(.[0-9]{1,3}){3}$|'
'[a-zA-Z0-9\-]+(.[a-zA-Z0-9\-]){1,}$)'
'pattern': '^[a-zA-Z0-9\-]+\@([0-9]{1,3}(\.[0-9]{1,3}){3}$|'
'[a-zA-Z0-9\-]+(\.[a-zA-Z0-9\-]+){1,}$)'
}


Expand Down

0 comments on commit e45fa73

Please sign in to comment.