Quellcode durchsuchen

Fixing string formatting in salt/state.py

Gareth J. Greenaway vor 4 Jahren
Ursprung
Commit
2943e12523
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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)