parent
d0de585229
commit
d0e90d3687
2 changed files with 7 additions and 2 deletions
|
|
@ -10150,7 +10150,8 @@ def policy_data_from_task_args(method, arglist):
|
|||
target = tinfo['name']
|
||||
policy_data['target'] = target
|
||||
|
||||
t_opts = params.get('opts', {})
|
||||
# we may have param['opts'] that is explicitly None
|
||||
t_opts = params.get('opts') or {}
|
||||
policy_data['scratch'] = t_opts.get('scratch', False)
|
||||
|
||||
return policy_data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue