Browse Source

fix: reformat the script

pull/35/head
mingrammer 4 years ago
parent
commit
197912d645
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      scripts/resource.py

+ 2
- 3
scripts/resource.py View File

@@ -52,7 +52,7 @@ def cleaner_k8s(f):
f = f.replace("-256", "") f = f.replace("-256", "")
for p in cfg.FILE_PREFIXES["k8s"]: for p in cfg.FILE_PREFIXES["k8s"]:
if f.startswith(p): if f.startswith(p):
f = f[len(p) :]
f = f[len(p):]
break break
return f.lower() return f.lower()


@@ -65,13 +65,12 @@ def cleaner_alibabacloud(f):
return f.lower() return f.lower()





def cleaner_oci(f): def cleaner_oci(f):
f = f.replace("_", "-") f = f.replace("_", "-")
f = f.replace("-grey", "") f = f.replace("-grey", "")
for p in cfg.FILE_PREFIXES["oci"]: for p in cfg.FILE_PREFIXES["oci"]:
if f.startswith(p): if f.startswith(p):
f = f[len(p) :]
f = f[len(p):]
break break
return f.lower() return f.lower()




Loading…
Cancel
Save