File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 121121from ansible .module_utils .six import string_types
122122import shlex
123123
124+
124125def run_container_exec (module : AnsibleModule ) -> dict :
125126 '''
126127 Execute podman-container-exec for the given options
@@ -196,32 +197,29 @@ def main():
196197 argument_spec = {
197198 'name' : {
198199 'type' : 'str' ,
199- 'required' : True
200+ 'required' : True ,
200201 },
201202 'command' : {
202203 'type' : 'str' ,
203204 },
204205 'argv' : {
205206 'type' : 'list' ,
207+ 'elements' : 'str' ,
206208 },
207209 'detach' : {
208210 'type' : 'bool' ,
209- 'default' : False
211+ 'default' : False ,
210212 },
211213 'env' : {
212214 'type' : 'dict' ,
213215 },
214216 'privileged' : {
215217 'type' : 'bool' ,
216- 'default' : False
217- },
218- 'privileged' : {
219- 'type' : 'bool' ,
220- 'default' : False
218+ 'default' : False ,
221219 },
222220 'tty' : {
223221 'type' : 'bool' ,
224- 'default' : False
222+ 'default' : False ,
225223 },
226224 'user' : {
227225 'type' : 'str' ,
You can’t perform that action at this time.
0 commit comments