浏览代码

Fixing string formatting in salt/state.py

Gareth J. Greenaway 4 年之前
父节点
当前提交
2943e12523
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      salt/state.py

+ 2 - 2
salt/state.py

@@ -4033,8 +4033,8 @@ class BaseHighState:
                             levels, include = match.groups()
                         else:
                             msg = (
-                                "Badly formatted include {0} found in include "
-                                "in SLS '{2}:{3}'".format(inc_sls, saltenv, sls)
+                                "Badly formatted include {} found in include "
+                                "in SLS '{}:{}'".format(inc_sls, saltenv, sls)
                             )
                             log.error(msg)
                             errors.append(msg)