Commit 618d167c authored by Rafael Monnerat's avatar Rafael Monnerat Committed by Rafael Monnerat

cli/registry: get template directly and not reply on namespaces for this

  Conflicts on namespace can easily break this feature, so pick the
  template directly is safer.
parent c185f7ab
......@@ -208,8 +208,8 @@ def save_former_config(conf):
def fetch_configuration_template():
template_arg_list = (__name__.split('.')[0], 'slapos.cfg.example')
with pkg_resources.resource_stream(*template_arg_list) as fout:
template_path = os.path.join("/".join(__file__.split('/')[:-2]), 'slapos.cfg.example')
with open(template_path, 'r') as fout:
slapos_node_configuration_template = fout.read()
return slapos_node_configuration_template
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment