Skip to content

Commit 1c94f11

Browse files
corrected action operations post_data
Signed-off-by: Shiva Shankar Vaddepally <[email protected]>
1 parent 6eef4f7 commit 1c94f11

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/module_utils/common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ def create_resource_with_action(client, resource_name, resource_module_params, a
273273
ok, err, post_data = _check_create_resource_params(
274274
resource_name, resource_module_params, action=action
275275
)
276+
if resource_name not in NESTED_POST_DATA_RESOURCES:
277+
post_data = {resource_name: post_data}
276278
if not ok:
277279
return False, err
278280
status_code, response_body = client.post(

0 commit comments

Comments
 (0)