Fixes broken config path for functions (#1177)

This commit is contained in:
Vishal
2019-05-09 13:12:52 +05:30
committed by GitHub
parent f8dfc75872
commit 69de5e03d3
4 changed files with 4 additions and 4 deletions
@@ -1,5 +1,5 @@
def main():
path = "/configmaps/default/{{ FN_CFGMAP }}/TEST_KEY"
path = "/configs/default/{{ FN_CFGMAP }}/TEST_KEY"
f = open(path, "r")
data = f.read()
return data, 200
+1 -1
View File
@@ -1,6 +1,6 @@
import os
def main():
cfgmap_path = "/configmaps/"
cfgmap_path = "/configs/"
secret_path = "/secrets/"
if os.listdir(cfgmap_path) or os.listdir(secret_path):
return "no", 400