mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
tweak indentation for 'make pep8'
This commit is contained in:
parent
588b20c012
commit
e1167d6977
3 changed files with 17 additions and 12 deletions
|
@ -98,10 +98,15 @@ def main():
|
||||||
password = module.params.get('password')
|
password = module.params.get('password')
|
||||||
|
|
||||||
supervisorctl_args = [ module.get_bin_path('supervisorctl', True) ]
|
supervisorctl_args = [ module.get_bin_path('supervisorctl', True) ]
|
||||||
if config: supervisorctl_args.extend(['-c', config])
|
|
||||||
if server_url: supervisorctl_args.extend(['-s', server_url])
|
if config:
|
||||||
if username: supervisorctl_args.extend(['-u', username])
|
supervisorctl_args.extend(['-c', config])
|
||||||
if password: supervisorctl_args.extend(['-p', password])
|
if server_url:
|
||||||
|
supervisorctl_args.extend(['-s', server_url])
|
||||||
|
if username:
|
||||||
|
supervisorctl_args.extend(['-u', username])
|
||||||
|
if password:
|
||||||
|
supervisorctl_args.extend(['-p', password])
|
||||||
|
|
||||||
def run_supervisorctl(cmd, name=None, **kwargs):
|
def run_supervisorctl(cmd, name=None, **kwargs):
|
||||||
args = list(supervisorctl_args) # copy the master args
|
args = list(supervisorctl_args) # copy the master args
|
||||||
|
|
Loading…
Reference in a new issue