Skip to content

Commit

Permalink
Updated nim module to include accept_licenses flag (#606)
Browse files Browse the repository at this point in the history
Signed-off-by: schamola <[email protected]>
  • Loading branch information
schamola authored Jan 31, 2025
1 parent c195318 commit 5877aed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/modules/nim.py
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,8 @@ def install_filesets(module, params):

# Perform customization

cust_cmd = ['nim', '-o', 'cust']
cust_cmd = ['nim', '-o', 'cust',
'-a', 'accept_licenses=yes']
cust_cmd.append(target)

rc, stdout, stderr = module.run_command(cust_cmd)
Expand All @@ -893,7 +894,7 @@ def install_filesets(module, params):
module.log('NIM - Error: ' + msg)
results['status'][target] = 'FAILURE'
else:
if stdout.split()[-1] == "SUCCESS":
if "SUCCESS" in stdout.split():
changed_val = 1
results['status'][target] = 'SUCCESS'

Expand Down

0 comments on commit 5877aed

Please sign in to comment.