python - TypeError: put() 得到了一个意外的关键字参数“use_sudo”
问题描述
我运行以下命令:
c = Connection('sid', config=config)
c.put("local", "/etc/nginx/sites-available/addr", use_sudo=True)
我明白了
~/.virtualenvs/fabric/lib/python3.7/site-packages/fabric/connection.py in put(self, *args, **kwargs)
784 .. versionadded:: 2.0
785 """
--> 786 return Transfer(self).put(*args, **kwargs)
787
788 # TODO: yield the socket for advanced users? Other advanced use cases
TypeError: put() got an unexpected keyword argument 'use_sudo'
我不能用织物芯做这个吗?
解决方案
推荐阅读
- html - ESP32 - 具有可变内容的 Web 服务器网页
- javascript - JointJs:使用 Node.Js 定义自定义形状
- javascript - 从上一页提取数据并在表单中提交(需要 jquery 或 javascript)
- python - 如何在 Streamlit 中管理数据帧(托管在 Heroku 上)
- c++ - C++20 的 std::source_location 与预定义的宏 __FILE__、__LINE__ 和 __FUNCTION__ 相比有什么优势?
- javascript - javascript remove a exact index character from the string
- amazon-web-services - AWS 数据同步设置
- r - 当我尝试在具有“geeglm”类的模型上运行摘要时出现此错误,但不确定我应该检查什么
- mysql - 删除剩余行MySql
- c# - 对象数组:如何获取数组内对象的名称?