mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
bower module. Non-interactive mode and allow-root moved to _exec, they should affect all commands
This commit is contained in:
committed by
Matt Clay
parent
22c04c2b9c
commit
16e51e57f8
@@ -86,7 +86,7 @@ class Bower(object):
|
||||
|
||||
def _exec(self, args, run_in_check_mode=False, check_rc=True):
|
||||
if not self.module.check_mode or (self.module.check_mode and run_in_check_mode):
|
||||
cmd = ["bower"] + args
|
||||
cmd = ["bower"] + args + ['--config.interactive=false', '--allow-root']
|
||||
|
||||
if self.name:
|
||||
cmd.append(self.name_version)
|
||||
@@ -108,7 +108,7 @@ class Bower(object):
|
||||
return ''
|
||||
|
||||
def list(self):
|
||||
cmd = ['list', '--json', '--config.interactive=false', '--allow-root']
|
||||
cmd = ['list', '--json']
|
||||
|
||||
installed = list()
|
||||
missing = list()
|
||||
|
||||
Reference in New Issue
Block a user