我使用fabric.tasks.execute在遠程服務器上執行命令,並且需要根據系統使用不同的shell。現在我的代碼是這樣的: def run_test(server_ip, server_shell):
execute(test,server_ip,server_shell,host=server_ip) # host can be specified in execute arg
我試圖用布料「log_action」方法記載在這裏: http://docs.fabfile.org/en/1.6/usage/fab.html#per-task-arguments 但是看起來好像是「」 log_action」方法一直沒有執行。 面料1.8.2,1.12.3的paramiko from fabric.api import run
from fabric.api import e