mirror of
https://github.com/frappe/bench.git
synced 2024-11-11 15:51:03 +00:00
Fixed incorrect docstring
Changed run_playbook function for consistency with existing code
This commit is contained in:
parent
2e9cfa5d02
commit
366d3aa8c5
@ -87,7 +87,7 @@ def setup_firewall():
|
||||
@click.command('ssh-port')
|
||||
@click.argument('port')
|
||||
def set_ssh_port(port):
|
||||
"Setup firewall"
|
||||
"Set SSH Port"
|
||||
from bench.utils import run_playbook
|
||||
click.confirm('This will change your SSH Port to {}\n'
|
||||
'Do you want to continue?'.format(port),
|
||||
|
@ -693,5 +693,5 @@ def run_playbook(playbook_name, extra_vars=None):
|
||||
sys.exit(1)
|
||||
args = ['ansible-playbook', '-c', 'local', playbook_name]
|
||||
if extra_vars:
|
||||
args.extend(['--extra-vars=' + json.dumps(extra_vars)])
|
||||
args.extend(['-e', json.dumps(extra_vars)])
|
||||
subprocess.check_call(args, cwd=os.path.join(os.path.dirname(bench.__path__[0]), 'playbooks'))
|
||||
|
Loading…
Reference in New Issue
Block a user