@ -11,7 +11,7 @@ import os
from ansible . errors import AnsibleError , AnsibleAction , _AnsibleActionDone , AnsibleActionFail
from ansible . errors import AnsibleError , AnsibleAction , _AnsibleActionDone , AnsibleActionFail
from ansible . module_utils . _text import to_native
from ansible . module_utils . _text import to_native
from ansible . module_utils . common . collections import Mapping
from ansible . module_utils . common . collections import Mapping , MutableMapping
from ansible . module_utils . parsing . convert_bool import boolean
from ansible . module_utils . parsing . convert_bool import boolean
from ansible . module_utils . six import text_type
from ansible . module_utils . six import text_type
from ansible . plugins . action import ActionBase
from ansible . plugins . action import ActionBase
@ -61,7 +61,7 @@ class ActionModule(ActionBase):
' body must be mapping, cannot be type %s ' % body . __class__ . __name__
' body must be mapping, cannot be type %s ' % body . __class__ . __name__
)
)
for field , value in body . items ( ) :
for field , value in body . items ( ) :
if isinstance ( value , text_type ) :
if not isinstance ( value , MutableMapping ) :
continue
continue
content = value . get ( ' content ' )
content = value . get ( ' content ' )
filename = value . get ( ' filename ' )
filename = value . get ( ' filename ' )