Fix MRN-931. Hostname validation fixed
Change-Id: I96cb8ee13e2905fab9ba41b6dea1ae84b74c7765
This commit is contained in:
parent
c02e3afa03
commit
8f9e39d289
@ -91,7 +91,7 @@ forms:
|
|||||||
helpText: Optional field for a machine hostname template
|
helpText: Optional field for a machine hostname template
|
||||||
validators:
|
validators:
|
||||||
# if unitNamingPattern is given and dcInstances > 1, then '#' should occur in unitNamingPattern
|
# if unitNamingPattern is given and dcInstances > 1, then '#' should occur in unitNamingPattern
|
||||||
- expr: {YAQL: $.serviceConfiguration.dcInstances < 2 or not $.serviceConfiguration.unitNamingPattern.bool() or '#' in $.serviceConfiguration.unitNamingPattern}
|
- expr: {YAQL: $.serviceConfiguration.dcInstances < 2 or not $.serviceConfiguration.unitNamingPattern.bool() or ('#' in $.serviceConfiguration.unitNamingPattern)}
|
||||||
message: Incrementation symbol "#" is required in the Hostname template
|
message: Incrementation symbol "#" is required in the Hostname template
|
||||||
- instanceConfiguration:
|
- instanceConfiguration:
|
||||||
fields:
|
fields:
|
||||||
|
@ -94,7 +94,7 @@ forms:
|
|||||||
helpText: Optional field for a machine hostname template
|
helpText: Optional field for a machine hostname template
|
||||||
validators:
|
validators:
|
||||||
# if unitNamingPattern is given and dcInstances > 1, then '#' should occur in unitNamingPattern
|
# if unitNamingPattern is given and dcInstances > 1, then '#' should occur in unitNamingPattern
|
||||||
- expr: {YAQL: not $.serviceConfiguration.unitNamingPattern.bool() or '#' in $.serviceConfiguration.unitNamingPattern}
|
- expr: {YAQL: not $.serviceConfiguration.unitNamingPattern.bool() or ('#' in $.serviceConfiguration.unitNamingPattern)}
|
||||||
message: Incrementation symbol "#" is required in the Hostname template
|
message: Incrementation symbol "#" is required in the Hostname template
|
||||||
- instanceConfiguration:
|
- instanceConfiguration:
|
||||||
fields:
|
fields:
|
||||||
|
@ -81,7 +81,7 @@ forms:
|
|||||||
helpText: Optional field for a machine hostname template
|
helpText: Optional field for a machine hostname template
|
||||||
validators:
|
validators:
|
||||||
# if unitNamingPattern is given and dcInstances > 1, then '#' should occur in unitNamingPattern
|
# if unitNamingPattern is given and dcInstances > 1, then '#' should occur in unitNamingPattern
|
||||||
- expr: {YAQL: not $.serviceConfiguration.unitNamingPattern.bool() or '#' in $.serviceConfiguration.unitNamingPattern}
|
- expr: {YAQL: not $.serviceConfiguration.unitNamingPattern.bool() or ('#' in $.serviceConfiguration.unitNamingPattern)}
|
||||||
message: Incrementation symbol "#" is required in the Hostname template
|
message: Incrementation symbol "#" is required in the Hostname template
|
||||||
- instanceConfiguration:
|
- instanceConfiguration:
|
||||||
fields:
|
fields:
|
||||||
|
Loading…
Reference in New Issue
Block a user