Add missing fields for HTTPS health monitors

Some fields (http method, expected codes, url path) are missing in
health monitor form when type is HTTPS.
These are valid parameters for HTTP and HTTPS health monitors.

Change-Id: I3668f3dc5d3eb6a288994386294cc018035540c8
Story: 2007512
Task: 39292
(cherry picked from commit 9a42586975)
This commit is contained in:
Gregory Thiemonge 2020-04-03 10:43:36 +02:00
parent 262e822c5b
commit 35d0a35362
2 changed files with 2 additions and 2 deletions

View File

@ -574,7 +574,7 @@
}
// Only include necessary monitor properties
if (finalSpec.monitor.type !== 'HTTP') {
if (finalSpec.monitor.type !== 'HTTP' && finalSpec.monitor.type !== 'HTTPS') {
delete finalSpec.monitor.http_method;
delete finalSpec.monitor.expected_codes;
delete finalSpec.monitor.url_path;

View File

@ -97,7 +97,7 @@
</div>
<div class="row" ng-if="model.spec.monitor.type === 'HTTP'">
<div class="row" ng-if="model.spec.monitor.type === 'HTTP' || model.spec.monitor.type === 'HTTPS'">
<div class="col-xs-12 col-sm-8 col-md-6 col-lg-4">
<div class="form-group">