mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 20:26:13 +01:00
delete deprecated method
This commit is contained in:
parent
4d9d46ffc4
commit
c4015355ce
@ -57,7 +57,7 @@ if not os.path.exists(db_config_dir):
|
||||
os.makedirs(os.path.join(config_dir, "db"))
|
||||
|
||||
def render(src, dest, **kw):
|
||||
t = Template(open(src, 'r').read().strip('echo').strip().strip('"'))
|
||||
t = Template(open(src, 'r').read())
|
||||
with open(dest, 'w') as f:
|
||||
f.write(t.substitute(**kw))
|
||||
print("Generated configuration file: %s" % dest)
|
||||
|
Loading…
Reference in New Issue
Block a user