Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hardik Juneja
slapos.core
Commits
3d71c8ff
Commit
3d71c8ff
authored
May 15, 2014
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use local template instead download a new one.
parent
e314c644
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
slapos/cli/register.py
slapos/cli/register.py
+4
-4
No files found.
slapos/cli/register.py
View file @
3d71c8ff
...
@@ -174,10 +174,10 @@ def save_former_config(conf):
...
@@ -174,10 +174,10 @@ def save_former_config(conf):
def
fetch_configuration_template
():
def
fetch_configuration_template
():
req
=
requests
.
get
(
'http://git.erp5.org/gitweb/slapos.core.git/blob_plain/HEAD:/
slapos.cfg.example'
)
template_arg_list
=
(
__name__
.
split
(
'.'
)[
0
],
'
slapos.cfg.example'
)
req
.
raise_for_status
()
with
pkg_resources
.
resource_stream
(
*
template_arg_list
)
as
fout
:
return
req
.
text
slapos_node_configuration_template
=
fout
.
read
()
return
slapos_node_configuration_template
def
slapconfig
(
conf
):
def
slapconfig
(
conf
):
"""Base Function to configure slapos in /etc/opt/slapos"""
"""Base Function to configure slapos in /etc/opt/slapos"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment