WIP Set default value for HSTS options to None

The default value of these options is False, it means that octaviaclient
sends {'attr': False} to the Octavia API while it is not required.

Change-Id: Ica89bbd257216ef423afc44e0c81498037aece20
This commit is contained in:
Gregory Thiemonge 2023-09-22 10:55:10 -04:00
parent 7ce63497a9
commit e85930fae8
1 changed files with 2 additions and 0 deletions

View File

@ -215,6 +215,7 @@ class CreateListener(command.ShowOne):
'--hsts-include-subdomains',
action='store_true',
dest='hsts_include_subdomains',
default=None,
help="Define whether the includeSubDomains directive should be "
"added to the Strict-Transport-Security HTTP response "
"header."
@ -223,6 +224,7 @@ class CreateListener(command.ShowOne):
'--hsts-preload',
action='store_true',
dest='hsts_preload',
default=None,
help="Define whether the preload directive should be "
"added to the Strict-Transport-Security HTTP response "
"header."