2
0
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:
Valmik Jangla 2016-10-21 03:48:18 -07:00
parent 2e9cfa5d02
commit 366d3aa8c5
2 changed files with 2 additions and 2 deletions

View File

@ -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),

View File

@ -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'))