Skip to content

Commit

Permalink
Dev: Add option core.add_advised_op_values, default value is 'yes'
Browse files Browse the repository at this point in the history
  • Loading branch information
liangxin1300 committed Aug 12, 2024
1 parent e6d4e24 commit 80a1d0d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crmsh/cibconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ def parse_cli_to_xml(cli, oldnode=None):
advised_op_values = False
default_promotable_meta = False
else:
advised_op_values = True
advised_op_values = config.core.add_advised_op_values
default_promotable_meta = True
node = parse.parse(cli, comments=comments, ignore_empty=False, add_advised_op_values=advised_op_values)
if node is False:
Expand Down
1 change: 1 addition & 0 deletions crmsh/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ def get(self, value):
'report_tool_options': opt_string(''),
'lock_timeout': opt_string('120'),
'OCF_1_1_SUPPORT': opt_boolean('no'),
'add_advised_op_values': opt_boolean('yes'),
'obscure_pattern': opt_string('passw*')
},
'path': {
Expand Down
1 change: 1 addition & 0 deletions etc/crm.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
; ignore_missing_metadata = no
; report_tool_options =
; lock_timeout = 120
; add_advised_op_values = yes

; set OCF_1_1_SUPPORT to yes is to fully turn on OCF 1.1 feature once the corresponding CIB detected.
; OCF_1_1_SUPPORT = yes
Expand Down

0 comments on commit 80a1d0d

Please sign in to comment.