部署 salt minion 期间触发的 UnboundLocalError

UnboundLocalError triggered during the deployment of a salt minion

在 minion 部署期间,UnboundLocalErrorgit 库引发,用作 salt

的依赖项
An exception occurred in this state: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1594, in call
    **cdata['kwargs'])
  File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1491, in wrapper
    return f(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/salt/states/git.py", line 519, in latest
    if remote_rev_type == 'sha1':
UnboundLocalError: local variable 'remote_rev_type' referenced before assignment

很不清楚这里发生了什么。有什么线索吗?

这是 库中的错误。变量 remote_rev_type 未在所有执行路径中初始化。

current salt-stack source code 的外观来看,我认为它已经修复了。