mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-25 21:44:00 -07:00
refactor dict from literal list (#10891)
* refactor dict from literal list * add changelog frag
This commit is contained in:
parent
14a858fd9c
commit
5f471b8e5b
6 changed files with 17 additions and 14 deletions
|
|
@ -183,8 +183,8 @@ class PacemakerStonith(StateModuleHelper):
|
|||
def fmt_stonith_operations(self):
|
||||
modified_stonith_operations = []
|
||||
for stonith_operation in self.vars.stonith_operations:
|
||||
modified_stonith_operations.append(dict([("operation_action", stonith_operation.get('operation_action')),
|
||||
("operation_option", stonith_operation.get('operation_options'))]))
|
||||
modified_stonith_operations.append(dict(operation_action=stonith_operation.get('operation_action'),
|
||||
operation_option=stonith_operation.get('operation_options')))
|
||||
return modified_stonith_operations
|
||||
|
||||
def state_absent(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue